Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi
I have the following regex which searches for a number with starting 4 numeric values and last value as numeric or alphabet
^\d{4,4}[A-Z0-9]$
When i try to match this regex in a user given input it easily matches. But when i try to run the same regex for pattern matching in a large text file than it fails to recognize the pattern in text file. i fail to understand why.. Help
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: pcre regex
by GrandFather (Saint) on Apr 06, 2012 at 10:30 UTC | |
by Anonymous Monk on Apr 06, 2012 at 10:41 UTC | |
|
Re: pcre regex
by moritz (Cardinal) on Apr 06, 2012 at 10:32 UTC | |
by Anonymous Monk on Apr 06, 2012 at 10:56 UTC | |
by moritz (Cardinal) on Apr 06, 2012 at 11:28 UTC | |
by Anonymous Monk on Apr 06, 2012 at 11:36 UTC | |
by moritz (Cardinal) on Apr 06, 2012 at 11:40 UTC | |
by bart (Canon) on Apr 06, 2012 at 12:00 UTC | |
|
Re: pcre regex
by nemesdani (Friar) on Apr 06, 2012 at 10:22 UTC | |
by Anonymous Monk on Apr 06, 2012 at 10:28 UTC | |
|
Re: pcre regex
by Anonymous Monk on Apr 06, 2012 at 12:48 UTC |