Regular Expressions 101

Community Patterns

Table Purgatory

1

Regular Expression
PCRE (PHP <7.3)

/
(?<garbage>(nowrap="")|(nowrap))(?<styleHead>\sstyle=")(?<styleBody>\w+((\w+)|(-\w+)):\s\w+;)(?<styleTail>")
/

Description

A regex to find all nowrap text occurrences and name all the groups involved in preparation for a replacement pass

Submitted by Joe Hacobian - 11 years ago