Home
Tester
Reference
About
Pattern
(<(?:img|a)(?:\s[^>]*>)?)|text
Input
This is some
Text
:
<a href='/text.html'>
<img src='/images/text.png'/>
</a>
This is some Text: <a href='/text.html'><img src='/images/text.png'/></a>
Options
Ignore Case
Ignore Whitespace
Explicit Capture
Culture Invariant
Singleline
Multiline
Right To Left
ECMA Script
Start from position:
Max matches to find:
Replacement
Replace matches with...
Click the
context
tab to see replacements.
Regex Info
Table
Context
Split List
3
matches found in about
5
milliseconds.
Show Permalink
Permalink
Index
Position
Matched String
$1
0
13
Text
empty string
1
19
<a href='/text.html'>
<a href='/text.html'>
2
40
<img src='/images/text.png'/>
<img src='/images/text.png'/>
This is some
Text
:
<a href='/text.html'>
<img src='/images/text.png'/>
</a>
This is some
:
<a href='/text.html'>
empty string
<img src='/images/text.png'/>
</a>