Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE2 (PHP >=7.3)

/
(?:<.*?>|&\w++;)(*SKIP)(*F)|micro
/
g

Description

In an HTML page, replace the text micro with µ. Oh, and don't screw up the code: don't replace inside <the tags> or &entities;

Submitted by anonymous - a month ago