![]() |
|
Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: RE question: Sentence with a minimum lengthby moritz (Cardinal) |
on Oct 06, 2008 at 08:52 UTC ( #715530=note: print w/replies, xml ) | Need Help?? |
You could try something along these lines (untested):
(Update: this regex might be very inefficient because both \w+? and .*? might match the same number characters. Use (\w+\s+\w.*?) instead.) In general that sounds like a problem for which regexes aren't the best solution (split and friends might be better).
In Section
Seekers of Perl Wisdom
|
|