in reply to Re^2: search pattern with digits
in thread search pattern with digits
Regular expressions can have a /x qualifier. It allows embedded comments and for the regular expression to be formatted for easy reading. To get a literal space you have to either
I used /x to make it easier for you to see the alternations. You can remove it along with the comment (# to end of line), white space not in a character class and then change "[ ]" to " ".
I am now a little confused about what you are matching. You say you are given the string to match as an argument but you have two different strings "total rows rejected: number" and "number rows rejected". If you do put the argument into a regular expression then you are correct to use \Q \E.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: search pattern with digits
by mercuryshipz (Acolyte) on Feb 14, 2008 at 21:07 UTC | |
by hipowls (Curate) on Feb 14, 2008 at 22:22 UTC |