I'm looking for a regex that will find a dutch phone number inside a piece of text. For example:
- Mijn telefoonnnummer is 0612131415
- Mijn telefoonnnummer is 06-12345678
- Mijn telefoonnummer0612131415email
Is shouldn't detect
- 000006121314150000
- -0612131415-
- 00-0612131415-00
This regex (https://regexr.com/3aevr) seems fine for detecting seperate values:
^((\+|00(\s|\s?\-\s?)?)31(\s|\s?\-\s?)?(\(0\)[\-\s]?)?|0)[1-9]((\s|\s?\-\s?)?[0-9])((\s|\s?-\s?)?[0-9])((\s|\s?-\s?)?[0-9])\s?[0-9]\s?[0-9]\s?[0-9]\s?[0-9]\s?[0-9]$
Unfortunately it does not work for my purposes. Any help is appreciated.