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.
In reply to Re: Using grep on windows
by Fletch
in thread Using grep on windows
by rogermills
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |