Regular Expressions 101

Sponsors

Library entries

1
pcre

blah

no description available
Submitted by anonymous - 8 years ago
-3
pcre

regex help

help please. i need regex,
Submitted by James - 8 years ago
1
pcre

test_task_regexp_3

no description available
Submitted by i.kulzazhenko - 8 years ago
1
pcre

34 ile 3982 nolu özelliklerin seçimi

Kemik Grubu
Submitted by Hakan YILMAZER - 8 years ago
1
pcre

MongoDB _ID

Detect if is a valid id for MongoDB
Submitted by manuerumx - 8 years ago
1
pcre

dapi

no description available
Submitted by anonymous - 8 years ago
1
pcre

ref match

no description available
Submitted by anonymous - 8 years ago
1
pcre

Why is this not matching the closest <A tag?

no description available
Submitted by Daz - 8 years ago
-2
pcre

Find multiple XML documents in file

as title says
Submitted by Doro - 8 years ago

Phone numbers matcher

Vote

1

Regular Expression
pcre

/
^ # begin \s*# some empty spaces (?: \+? # + symbol \d{1,2} # country code \s* (?(?=\)) # if followed by parens | # then dash not allowed -? # else optional dash ) )? #prefix like +380 \s* (?: (?P<leftparen>\()? # optional left paren \s* 0\d\d \s* (?(leftparen)\)|) # right paren if and only if left paren )? # operator code, starting with 0, optinally in parentheses (?(?<=\)) # if preceded by parens \s*| # then dash not allowed \s*-?\s* # else optional dash ) (?: \d | (?<= \d ) (?(sep) (?P=sep)| (?P<sep>[\-\/\ ]) ) (?= \d ) ){5,13} \s*# some empty spaces $ # end #\d\d\d (?P<separator>-?) \d\d (?P=separator) \d\d $
/
mgx

Description

Loading markdown...
Submitted by Oleksandr Sochka - 9 years ago