Regular Expressions 101

Save & Share

Flavor

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

Function

  • Match
  • Substitution
  • List
  • Unit Tests
"
<time from="(?P<TimeFrom>[\dT:-]*)" to="(?P<TimeTo>[\dT:-]*)" period="\d">.*?(?P<symbol>symbol number="\d").*?\>.*?(?P<percipication>precipitation value="\d").*?\>.*?(?P<windSpeed>windSpeed mps="[\d\.]*").*?\>.*?</time>
"
msgui
All the errors detected are listed below, from left to right, as they appear in the pattern.
" An unescaped delimiter must be escaped with a backslash (\)
" An unescaped delimiter must be escaped with a backslash (\)
" An unescaped delimiter must be escaped with a backslash (\)
" An unescaped delimiter must be escaped with a backslash (\)
" An unescaped delimiter must be escaped with a backslash (\)
" An unescaped delimiter must be escaped with a backslash (\)
" An unescaped delimiter must be escaped with a backslash (\)
" An unescaped delimiter must be escaped with a backslash (\)
" An unescaped delimiter must be escaped with a backslash (\)
" An unescaped delimiter must be escaped with a backslash (\)
" An unescaped delimiter must be escaped with a backslash (\)
" An unescaped delimiter must be escaped with a backslash (\)
Your regular expression does not match the subject string.

Regular Expression
No Match

r"
"
msgui

Test String