Syntactic Confectionery Delight | |
PerlMonks |
Re: Regexp help, multiple linesby CombatSquirrel (Hermit) |
on Aug 15, 2004 at 22:02 UTC ( [id://383150]=note: print w/replies, xml ) | Need Help?? |
In this case you might want to use \d in your RegEx to match any digit. You probably also want to make that star non-greedy (add a ? to it). A common idiom for a problem like this would be the following: Also, if you have fixed-width fields, consider using substr or unpack. Hope this helped. CombatSquirrel. Entropy is the tendency of everything going to hell.
In Section
Seekers of Perl Wisdom
|
|