regex - How regular expression ANDY X - XXXXX - XXXXX -


i trying create regular expression formate.

x integers , n 1 or more[1 infinity]. andy can lower or upper case

andy n: xxxxx - xxxxx  /^[\iandy]\s[\d]{1,}\s[0-9]{4}\s-\s[0-9]{4}$/ 

may know how make n more 0 regular expression? , there anyway improve it?

if want make sure it's more 0 use this:

[1-9]\d* 

as in 1 digit between 1 , 9, followed number of digits between 0 , 1.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -