Regular Expressions 101

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
<[^<]*\n<[^<]*(?<=<!-- )Links -->\n[^>]*>
/
gm

Description

I have a lot of code that looks like this:

<!--       -->
<!-- Links -->
<!--       -->

Sometimes I wanna search for it. Helps me find instances of it in my code.

Submitted by charliecalvert - 3 years ago