|
|
| P is for Practical | |
| PerlMonks |
Re: Regular Expression from Hellby perlmonkey (Hermit) |
| on Apr 15, 2004 at 11:34 UTC ( [id://345417]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
I think what you are looking for is:
This will match: '^': anchor start of string \d{4}: exactly 4 digits $: anchor end of string if you know it is always going to be digits, then length would probably be eaiser:
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||