Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi monks,
I would like to ask, can I limit the grep regular expression to avoid returning the word fragement?
i.e.If I grep "run", only the line with word "run" will return to me, not the line with word "running"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: grep - serach limited to complete word only
by jwkrahn (Abbot) on Mar 30, 2008 at 14:15 UTC | |
|
Re: grep - serach limited to complete word only
by ahmad (Hermit) on Mar 30, 2008 at 14:15 UTC | |
|
Re: grep - serach limited to complete word only
by FunkyMonk (Bishop) on Mar 30, 2008 at 14:16 UTC | |
|
Re: grep - search limited to complete word only
by ww (Archbishop) on Mar 30, 2008 at 15:46 UTC | |
|
Re: grep - serach limited to complete word only
by szabgab (Priest) on Mar 30, 2008 at 17:37 UTC | |
|
Re: grep - serach limited to complete word only
by Anonymous Monk on Mar 30, 2008 at 14:27 UTC | |
by Not_a_Number (Prior) on Mar 30, 2008 at 14:49 UTC | |
by jwkrahn (Abbot) on Mar 30, 2008 at 15:31 UTC |