I'm trying to filter out potential Citizen Service Numbers (BSN in Dutch) in specific texts which are also full of Dutch phone numbers. The phone numbers start with the +31 country code, while BSN numbers not.
Could someone help me to come up with the regular expression to match any 9-digit number that does not start with the +<country-code-like-prefix><space>?
For example, in the sentence:
The number is +31 713176319 and 650068168 is another one.
I'd like to extract 650068168, but not 713176319. This might be solved by negative lookahead, but I was not able to find the right solution.
+1 264xxxxxxxxx? [1]: countrycode.org