Regular Expressions 101

Community Patterns

Select links comment

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