Regular Expressions 101

@regex101
Donate
Sponsor
Contact
Bug Reports & Feedback
Wiki
Whats new?

Library entries

0
java
Submitted by Suman Maharjan - 13 hours ago

Email Regex

Regex to capture email from Text
0
pcre2
Submitted by anonymous - 15 hours ago

r-type single register

for a comp arch assembler
0
pcre2
Submitted by anonymous - 2 days ago

django /static/ to {% static %}

replaces as said
0
pcre2
Submitted by padero - 2 days ago

owo/uwu/7w7

detects this shit: owo uwu 7w7 unu 7n7...
0
pcre2
Submitted by anonymous - 3 days ago

Year/Month/Day parser

Parse the years/months/days from a string

Find html tag opening for tag with specific class.

Vote

-2

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