Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to 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 6-May-13 22:32pm
Edited 6-May-13 23:08pm
v2
Comments
KM Perumal at 7-May-13 3:36am
   
improve ur question
Prasad Khandekar at 7-May-13 3:57am
   
Which expression? Please use improve question link and provide more details.
Madhav Hatwalne at 7-May-13 4:17am
   
What is this Exprsso ?
Qadri Jillani at 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. at 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)

  Print Answers RSS
0 OriginalGriff 381
1 Sergey Alexandrovich Kryukov 265
2 Praneet Nadkar 237
3 Marcin Kozub 225
4 /\jmot 189
0 OriginalGriff 8,284
1 Sergey Alexandrovich Kryukov 7,407
2 DamithSL 5,614
3 Maciej Los 4,989
4 Manas Bhardwaj 4,986


Advertise | Privacy | Mobile
Web01 | 2.8.1411023.1 | Last Updated 7 May 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100