Regular Expressions 101

Sponsors

Library entries

0
javascript

price with two decimals

test
Submitted by anonymous - 12 days ago
0
javascript

define_1

1
Submitted by anonymous - 12 days ago
0
pcre

删除Markdown中的标签连接

https://regex101.com/r/kndTMF/1
Submitted by anonymous - 9 days ago
0
javascript

multicast

.
Submitted by anonymous - 7 days ago
0
javascript

111

111
Submitted by Alex - 3 days ago

Find html tag opening for tag with specific class.

Vote

-1

Regular Expression
pcre

/
^(?:(?<!\/\/|\/\*|<!--).)* #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 - 8 years ago