Regular Expressions 101

@regex101
Donate
Sponsor
Contact
Bug Reports & Feedback
Wiki
Whats new?

Save & Share

Flavor

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

Function

  • Match
  • Substitution
  • List
  • Unit Tests
/
\s<Object class="com.sunopsis.dwg.dbobj.SnpScenFolder">(.)<\/Object>
/
s
\s
matches any whitespace character (equivalent to [\r\n\t\f\v ])
* matches the previous token between zero and unlimited times, as many times as possible, giving back as needed (greedy)
<Object class="com matches the characters <Object class="com literally (case sensitive)
. matches any character
sunopsis matches the characters sunopsis literally (case sensitive)
. matches any character
dwg matches the characters dwg literally (case sensitive)
. matches any character
dbobj matches the characters dbobj literally (case sensitive)
. matches any character
SnpScenFolder"> matches the characters SnpScenFolder"> literally (case sensitive)
1st Capturing Group
(.)
< matches the character < literally (case sensitive)
\/ matches the character / literally (case sensitive)
Object> matches the characters Object> literally (case sensitive)
Global pattern flags
s modifier: single line. Dot matches newline characters
Your regular expression does not match the subject string.Try launching the debugger to find out why.

Regular Expression
No Match

/
/
s

Test String