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^>
In reply to Re: Re: Regex Needed
by TilRMan
in thread Regex Needed
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |