Regular Expressions 101

Community Patterns

1...34567...901

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 - 2 months ago