public
Created

Regex::Explain output

  • Download Gist
regex_in_touchdb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
The regular expression:
 
(?-imsx:^abcdefghijklmnopqrstuvwxyz0123456789_$()+-/)
 
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
----------------------------------------------------------------------
abcdefghijklmnopqrst 'abcdefghijklmnopqrstuvwxyz0123456789_'
uvwxyz0123456789_
----------------------------------------------------------------------
$ before an optional \n, and the end of the
string
----------------------------------------------------------------------
( group and capture to \1 (1 or more times
(matching the most amount possible)):
----------------------------------------------------------------------
)+ end of \1 (NOTE: because you are using a
quantifier on this capture, only the LAST
repetition of the captured pattern will be
stored in \1)
----------------------------------------------------------------------
-/ '-/'
----------------------------------------------------------------------
) end of grouping
----------------------------------------------------------------------

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.