Don't ask to ask, just ask | |
PerlMonks |
Re: first two words-pattern matchingby matija (Priest) |
on May 12, 2004 at 06:19 UTC ( [id://352654]=note: print w/replies, xml ) | Need Help?? |
^(\w\s+\w\s) That matches a single character folowed by one or more spaces, folowed by another single character, folowed by one space. What you probably want is something along the lines of Note that I removed the final space from your match by replacing it with \b - I assume you don't really need that final space.
In Section
Seekers of Perl Wisdom
|
|