in reply to grep regex exact match last n positions

If you are trying to match a 'word boundary', try \b:
grep {/\b$search$/} @array

     Syntactic sugar causes cancer of the semicolon.        --Alan Perlis

Replies are listed 'Best First'.
Re^2: grep regex exact match last n positions
by coldy (Scribe) on Apr 13, 2010 at 05:21 UTC
    thank you.