in reply to Re: Regex Needed
in thread Regex Needed
I think the OP has a different definition of "word" than Perl does -- in particular, a word can contain a colon. My guess is that the OP wants a word to be any non-whitespace.
m/(\S+)\s+FOUND/; # The word is now in $1I don't see the need to use lookahead for this regex.
--
LP^>
|
|---|