in reply to Using grep on windows
Your regexp "^CNR[0-9]" can never match as-is since you'll never have a beginning-of-line immediately following a ". You probably want to either drop the quotes (if the token always begins at the beginning of a line), or drop the caret (if the token always occurs in quotes). Not to mention \d is more concise than [0-9]
Update: Pedantry about [0-9] vice \d noted; suggestion withdrawn.
The cake is a lie.
The cake is a lie.
The cake is a lie.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using grep on windows
by JavaFan (Canon) on Oct 27, 2009 at 17:20 UTC | |
by ikegami (Patriarch) on Oct 27, 2009 at 17:42 UTC | |
by Bloodnok (Vicar) on Oct 27, 2009 at 17:40 UTC | |
by ikegami (Patriarch) on Oct 27, 2009 at 17:45 UTC |