in reply to
Negating a leading whitespace
Assume you are looking for "AB", then use:
/^(?!\s).*AB/
[download]
or if you can use two regexes:
!/^\s/ && /AB/
[download]
the latter is likely to be faster.
Comment on
Re: Negating a leading whitespace
Select
or
Download
Code
In Section
Seekers of Perl Wisdom