Regular Expressions 101

Community Patterns

Repair unquoted HTML attribute values

6

Regular Expression
PCRE (PHP <7.3)

/
\s+([a-zA-Z-]+)=([a-zA-Z0-9-]+)
/
g

Description

Usually MSWord HTML exports

Submitted by Ka. - 11 years ago