Click here to Skip to main content
11,635,626 members (86,308 online)
Rate this: bad
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 21:32pm
Edited 6-May-13 22:08pm
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:

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

  Print Answers RSS
0 333
1 OriginalGriff 283
2 Sergey Alexandrovich Kryukov 255
3 Suvendu Shekhar Giri 225
4 Mika Wendelius 204
0 OriginalGriff 8,941
1 Sergey Alexandrovich Kryukov 8,459
2 Mika Wendelius 6,849
3 F-ES Sitecore 2,364
4 Suvendu Shekhar Giri 2,320

Advertise | Privacy | Mobile
Web01 | 2.8.150728.1 | Last Updated 7 May 2013
Copyright © CodeProject, 1999-2015
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