P is for Practical | |
PerlMonks |
Re: regex problem (again)by JavaFan (Canon) |
on Apr 30, 2012 at 06:22 UTC ( [id://968003]=note: print w/replies, xml ) | Need Help?? |
Use /\S{4}\s(.+)/. I don't understand the (?{length($input);}) part -- it will always true unless $input is the empty string.
BTW, the regexp as given did not match, so $txt did not start with a space.
In Section
Seekers of Perl Wisdom
|
|