Regular Expressions 101

Save & Share

  • Save Regex
    ctrl+s
  • Update Regex
    ctrl+⇧+s

Flavor

  • PCRE2 (PHP >=7.3)
  • PCRE (PHP <7.3)
  • ECMAScript (JavaScript)
  • Python
  • Golang
  • Java 8

Function

  • Match
  • Substitution
  • List
  • Unit Tests
/
[A-F][+-]?|D
/
g
1st Alternative
[A-F][+-]?
Match a single character present in the list below
[A-F]
A-F matches a single character in the range between A (index 65) and F (index 70) (case sensitive)
Match a single character present in the list below
[+-]
? matches the previous token between zero and one times, as many times as possible, giving back as needed (greedy)
+-
matches a single character in the list +- (case sensitive)
2nd Alternative
D
D matches the character D with index 6810 (4416 or 1048) literally (case sensitive)
Global pattern flags
g modifier: global. All matches (don't return after first match)
Your regular expression does not match the subject string.Try launching the debugger to find out why.

Regular Expression
No Match

/
/
g

Test String