Tutorial
Tools & Languages
Examples
Reference
Opening and Closing Pair of a Specific HTML Tag
<TAG
[^>]
*
>
(
.
*?
)
</TAG>
Options: dot matches newline; case insensitive
Match the characters "<TAG" literally
Match a single character not present in the list: one of the characters ">"
Between zero and unlimited times, as many times as possible, giving back as needed (greedy)
Match the character ">" literally
Match the regular expression below and capture its match into backreference number 1
Match any single character
Between zero and unlimited times, as few times as possible, expanding as needed (lazy)
Match the characters "</TAG>" literally
Welcome
Tutorial
Tools and Languages
Examples
Reference
About This Site
Download and Print