more useful options | |
PerlMonks |
Re: Re: (Zigster) Help with reg expressionsby zigster (Hermit) |
on May 03, 2001 at 20:20 UTC ( [id://77698]=note: print w/replies, xml ) | Need Help?? |
Nooo see Death to Dot Star for a full discussion. This is a greedy match. The dot star will match as much as possible and is dangerous. At very least use a ? to cause a lazy match. When you say everything do you mean everything or do you mean only letters then try [A-Za-z]{4} or \w{4} (The {4} matches 4 times only) Try to make your regexp as specific as possible.
-- Zigster
In Section
Seekers of Perl Wisdom
|
|