user667430
user667430

Reputation: 1547

Regex not matching c#

Hi I am using a regex to match UK phone numbers which looks like below:

/^\(?0( *\d\)?){9,10}$/

http://regexr.com/39icf

I've tried testing the regex above but receive no matches for the numbers input which look valid to me.

Is my regex correct?

Upvotes: 0

Views: 65

Answers (1)

Fka
Fka

Reputation: 6234

It's working correct but you forget to select these checkboxes:

enter image description here

Upvotes: 3

Related Questions