Lync - .NET Regular Expressions



Serbia Phone Numbers beginning with +3811120500 and the last two digits can be anything = ^(\+3811120500\d{2})$

Serbia Phone numbers beginning with +381112300 where the third from last digit begin with an 8 or a 9 = ^(\+381112300[8-9]\d{2})

Serbia Phone numbers beginning with +381112300 where the second from last digit begin with an 0,1,2,3 or a 4 = ^(\+381112300[0-4]\d)$

4 Digit Extensions beginning with 5 = ^5\d{3}$

Use this tester to ensure your expressions are correct - REGEX Tester - http://regexstorm.net/tester


Comments