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
/
ж[аоые]лезн[оыа][йи]?[ая] дв[ие]рь
/
g
ж matches the character ж with index 107810 (43616 or 20668) literally (case sensitive)
Match a single character present in the list below
[аоые]
аоые
matches a single character in the list аоые (case sensitive)
лезн
matches the characters лезн literally (case sensitive)
Match a single character present in the list below
[оыа]
оыа
matches a single character in the list оыа (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)
Match a single character present in the list below
[ая]
ая
matches a single character in the list ая (case sensitive)
дв
matches the characters дв literally (case sensitive)
Match a single character present in the list below
[ие]
ие
matches a single character in the list ие (case sensitive)
рь
matches the characters рь 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