in reply to Re: Find a pattern
in thread Find a pattern
What you wrote is 'a one to nine digits, then space, then the word "failed"'.
No. /\d{1-9}/ matches a digit followed by a "{" followed by a "1" followed by a "-" followed by a "9" followed by a "}".
To match any number (for some definition of number), /\d+/ would do.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Find a pattern
by elef (Friar) on Jan 28, 2011 at 10:30 UTC | |
|
Re^3: Find a pattern
by fisher (Priest) on Jan 28, 2011 at 10:27 UTC |