Community Patterns

Community Library Entry

1

Regular Expression
Created·2014-07-17 09:01
Flavor·PCRE (Legacy)

/
((<(.|\n)+?>)?[^=])
/
g
Open regex in editor

Description

The pattern should match only the "=" symbols with in the html content other than the HTML attributes.

i.e if we have <html><head>Sample head</head><body style="Font family: Courier New"><p> This is a test a=b=c=d or a = b = c </p>

</body></html>

The pattern should match only "=" outside the html tags <>

Submitted by Dilip