Regular Expressions 101

Sponsors

Library entries

2
pcre

<a href=" replacer

to put # instead of url
Submitted by mrBakop - 6 years ago
2
javascript

Href parse

matches href, title, innerhtml
Submitted by chrysls - 6 years ago
2
python

Regex for Chemical Compounds

no description available
Submitted by Haiming Zhao - 6 years ago
2
javascript

Remove XSS

no description available
Submitted by Harish Thakur - 6 years ago
2
pcre

DateWithDay

no description available
Submitted by BobD - 6 years ago
2
javascript

SSN

allow nine digits only
Submitted by anonymous - 6 years ago
2
pcre

IPv4 strict

Valid: 000.01.249.255 1.199.200.0 0.0.0.0 Invalid:...
Submitted by MaxusR - 6 years ago
2
pcre

desanonimyse

no description available
Submitted by JB Escudié - 6 years ago
2
pcre

MONTHDAY

no description available
Submitted by anonymous - 6 years ago
2
pcre

hex number check

check if a string is a hex number
Submitted by anonymous - 6 years ago
2
pcre

Numéro de sécurité sociale (France)

no description available
Submitted by Anas - 6 years ago
2
pcre

get all between 2 lines

no description available
Submitted by anonymous - 6 years ago
2
pcre

Positive Ints

no description available
Submitted by anonymous - 6 years ago

BOOLEAN EXPRESSION WITH BRACKETS MATCHER

Vote

3

Regular Expression
pcre

/
(?(DEFINE) (?<exprs> (?&expr)(\s+(?&bool)\s+((?&expr)|\(\s*(?&exprs)\s*\)))* ) (?<expr> (?&valleft)\s?(?&comp)\s?(?&valright) ) (?<comp> ((!=)|(==)|(<=)|(>=)|(<)|(>)){1} ) (?<valleft> (?&not)[\w\.]+ ) (?<valright> [\w\.]+ ) (?<bool> (and|or) ) (?<not> (not\s+)?) ) (?&exprs)
/
xmi

Description

Loading markdown...
Submitted by Ilya Filisteev - 7 years ago