Home

Demonstrating A Regular Expression With Subpatterns

A Regular Expression From Regular Expressions (Subpatterns)

/<(col|(\/?(c(aption|olgroup)|t(able|body|foot|head|[dhr]))))>/

Strings That Will Match The Above Expression

Click on one of the table element tags below. The regular expression subpatterns that match that string will be highlighted.

Start TagEnd Tag
<caption> </caption>
<colgroup> </colgroup>
<table> </table>
<tbody> </tbody>
<tfoot> </tfoot>
<thead> </thead>
<td> </td>
<th> </th>
<tr> </tr>
<col>