Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2022-09-18 18:23
Flavor·PCRE2 (PHP)

/
<(\s)*([a-z0-9]+)(\s)*([a-zA-z0-9%,;()="'?\.\-:_\[\]&{}\/\s]*)(>|(\s)*\/>)*
/
gm
Open regex in editor

Description

A basic regex formula to find out the HTML tag name and its attributes that are available within HTML tag.

Submitted by anonymous