in reply to State this simple regex in English?
Is this any better? Tip #9 from the Basic debugging checklist: YAPE::Regex::Explain
The regular expression: (?-imsx:CAT[2-9]*$) 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): ---------------------------------------------------------------------- CAT 'CAT' ---------------------------------------------------------------------- [2-9]* any character of: '2' to '9' (0 or more times (matching the most amount possible)) ---------------------------------------------------------------------- $ before an optional \n, and the end of the string ---------------------------------------------------------------------- ) end of grouping ----------------------------------------------------------------------
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: State this simple regex in English?
by misterperl (Friar) on Apr 20, 2016 at 17:22 UTC | |
by soonix (Chancellor) on Apr 20, 2016 at 18:52 UTC | |
by AnomalousMonk (Archbishop) on Apr 20, 2016 at 20:50 UTC | |
by Anonymous Monk on Apr 20, 2016 at 22:13 UTC | |
by Discipulus (Canon) on Apr 21, 2016 at 06:54 UTC | |
by stevieb (Canon) on Apr 20, 2016 at 17:45 UTC |