Regular Expressions 101

Sponsors

Library entries

4
pcre

Hungarian ANDOK system id

no description available
Submitted by Tana - 8 years ago
6
pcre

ID003 device info

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

[A-Z]+[a-z]{1,2}[0-9]*

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

A masz!

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

failed attempt

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

Test Listing Parser

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

Ukazka

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

Task 2, part 1

Finds all source numbers in square brackets
Submitted by Kovalev Evgeny - 8 years ago
4
pcre

Task 1

Finds a happy smile, except sad one
Submitted by Kovalev Evgeny - 8 years ago
1
pcre

Task 1

no description available
Submitted by Kovalev Evgeny - 8 years ago
1
pcre

srt

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

example regex

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

test

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

match up to -

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

a^n b^n

no description available
Submitted by Oleksandr Sochka - 8 years ago
1
pcre

Divisible by 3 numbers

no description available
Submitted by Oleksandr Sochka - 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 - 8 years ago