Click here to Skip to main content
15,886,788 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
A regular expression is working in EXPRESSO environment but not in the coding why?
the following expressions gives accurate result while in EXPRESSO environment but when i use it in my coding it only validates the middle part i.e.(2[0-9]{3}[A-H]{1})
here is the regular expression:
(2[0-9]{3}[A-H]{2}) | (2[0-9]{3}[A-H]{1}) | (2[0-9]{3})
Posted
Updated 6-May-13 22:08pm
v2
Comments
KM Perumal 7-May-13 3:36am    
improve ur question
Prasad Khandekar 7-May-13 3:57am    
Which expression? Please use improve question link and provide more details.
Madhav Hatwalne 7-May-13 4:17am    
What is this Exprsso ?
Qadri Jillani 7-May-13 4:20am    
Expresso is a tool for handling regular expression. just like a compiler . you make an expression and execute it there it gives you output of that expression. and lots of other options are available as well
Johnny J. 7-May-13 9:31am    
@Madhav: This is Expresso:

http://www.codeproject.com/Articles/3669/Expresso-A-Tool-for-Building-and-Testing-Regular-E

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900