Regular Expressions 101

Community Patterns

0

test

PCRE (PHP <7.3)
teste
Submitted by anonymous - a year ago
0

mvc

PCRE (PHP <7.3)
com c#
Submitted by anonymous - a year ago
0

number two decimal digit

Python
.
Submitted by anonymous - a year ago
0

1

PCRE (PHP <7.3)
Prueba 1
Submitted by anonymous - a year ago
0

filter

PCRE (PHP <7.3)
filter string
Submitted by anonymous - a year ago
0

Project

Python
Project
Submitted by anonymous - a year ago
0

foengz1

Python
htmltag
Submitted by Foengz - a year ago

Find html tag opening for tag with specific class.

-1

Regular Expression
PCRE (PHP <7.3)

/
^(?:(?<!\/\/|\/\*|<!--).)* #check if commented out <[a-z][a-z0-9]*?\b #find start of a tag (?:.(?![^?]>))+ #Must not find > between start and class unless ?> class=(["']) #Find class and opening quotes (?:(?!\1).)* \bmatch\b (?:(?!\1).)* #see if our tag is in between the quotes \1 #closing quotes .*(?<!\?)> #find first > without ? in front of it
/
gmUix

Description

Loading markdown...
Submitted by Stack overflow Superspy - 9 years ago