Wednesday, 14 March 2018

python - Regex working wrong, matching unexpected things

I have this regex:



[\(\+\[]?[0-9]([\-\)\.\/-\]]?\s?\(?[0-9\s\)]){8,20}?


It must match only phone numbers, but instead it also matches things like:



[95.86.22.137]
95.86.22.137

(192.168.1.94)
274.1363525390625px;">
2014-8-720:32:45


Can someone help me correct this regex please ?

No comments:

Post a Comment

casting - Why wasn't Tobey Maguire in The Amazing Spider-Man? - Movies & TV

In the Spider-Man franchise, Tobey Maguire is an outstanding performer as a Spider-Man and also reprised his role in the sequels Spider-Man...