RegularRegExpressionsEx101
Explanation
An explanation of your regex will be automatically generated as you type.
Quick Reference
  • All Tokens
  • Common Tokens
  • General Tokens
  • Anchors
  • Meta Sequences
  • Quantifiers
  • Group Constructs
  • Character Classes
  • Flags/Modifiers
  • Substitution
  • A single character of: a, b or c
    [abc]
  • A character except: a, b or c
    [^abc]
  • A character in the range: a-z
    [a-z]
  • A character not in the range: a-z
    [^a-z]
  • A character in the range: a-z or A-Z
    [a-zA-Z]
  • Any single character
    .
  • Any whitespace character
    \s
  • Any non-whitespace character
    \S
  • Any digit
    \d
  • Any non-digit
    \D
  • Any word character
    \w
  • Any non-word character
    \W
  • Capture everything enclosed
    (...)
  • Match either a or b
    (a|b)
  • Zero or one of a
    a?
  • Zero or more of a
    a*
  • One or more of a
    a+
  • Exactly 3 of a
    a{3}
  • 3 or more of a
    a{3,}
  • Between 3 and 6 of a
    a{3,6}
  • Start of string
    ^
  • End of string
    $
  • A word boundary
    \b
  • Non-word boundary
    \B
Regular Expression
v16
/
/
g
very simple test
Target: capture group 1 (undefined), Criteria: starts with
mixed kind of quotes
Target: capture group 3 (undefined), Criteria: starts with
quotes inside quotes v1
Target: capture group 4 (undefined), Criteria: is null
quotes inside quote v2
Target: capture group 4 (undefined), Criteria: equals
unquoted var inside simple quotes
Target: capture group 4 (undefined), Criteria: equals
simple quote stops because of space
Target: capture group 4 (undefined), Criteria: equals
simple quotes can contain odd number of double quotes
Target: capture group 4 (undefined), Criteria: equals
double quotes can contain odd number of simple quotes
Target: capture group 3 (undefined), Criteria: equals
each two following double quotes are separate arguments (1)
Target: capture group 3 (undefined), Criteria: equals
each two following double quotes are separate arguments (2)
Target: capture group 3 (undefined), Criteria: equals
each two following double quotes are separate arguments (3)
Target: capture group 3 (undefined), Criteria: equals
simple quotes ignore bounded simple quotes
Target: capture group 4 (undefined), Criteria: equals