Can anybody find a mistake in the following regex:
regex = ([.0-9]+[/–_\":・’ー‘‐`─'.,-\0-9]*)
My intention is to match "numerical" strings of any kind but if the number is followed by e.g. a letter I just want to get the number.
When I use it with the following sentences:
s1 = Bla bla 805P bla 1080P; bla bla
s2 = Bla bla 5600p bla 5400p
It finds 805P and 1080P in s1 and 5600 and 5400 in s2.
You can check it using http://regexpal.com
I also used this regex in Regex Buddy and it gives me a description that says nothing about letters.
Does anybody have any idea why am I catching P and P; in s1 if there is no letters included in the second group of characters?
\0in the second regex group?