in reply to Another RegExp question
if ($step =~ /^\d{3}$/) {
Update: YAPE::Regex::Explain gives the following explanation:
The regular expression: (?-imsx:^\d{3}$) matches as follows: NODE EXPLANATION ---------------------------------------------------------------------- (?-imsx: group, but do not capture (case-sensitive) (with ^ and $ matching normally) (with . not matching \n) (matching whitespace and # normally): ---------------------------------------------------------------------- ^ the beginning of the string ---------------------------------------------------------------------- \d{3} digits (0-9) (3 times) ---------------------------------------------------------------------- $ before an optional \n, and the end of the string ---------------------------------------------------------------------- ) end of grouping ----------------------------------------------------------------------
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Another RegExp question
by Ronnie (Scribe) on Aug 17, 2006 at 11:32 UTC | |
by cdarke (Prior) on Aug 17, 2006 at 11:54 UTC |