Regular Expressions 101

Sponsors

Library entries

1
pcre

Match mydomain*.mydomain.com

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

match any email address in list

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

rvewr

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

Email validation

because everything else is too strict
Submitted by anonymous - 8 years ago
1
pcre

Get Itunes ID

Get itunes id from url
Submitted by sendypw - 8 years ago
1
pcre

test

test
Submitted by anonymous - 8 years ago
1
pcre

test

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

overlapping regex, small test

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

aaa

vvv
Submitted by anonymous - 8 years ago
1
pcre

Numer telefonu

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

Numer telefonu

no description available
Submitted by p.borecki - 8 years ago
1
pcre

win path

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

Achar dominios

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

Regex to replace alert

foo
Submitted by anonymous - 8 years ago

Validate URLs

Vote

1

Regular Expression
pcre

`
(?(DEFINE) (?<PROTOCOL>[^:/#?\s]+://) (?<LOGIN>[^:@/#?\s]+(?::[^@/#?\s]+)?@) (?<TEXT_DOMAIN>[^./#?\s-:]+(?:-[^./#?\s-:]+)?\.) (?<IP_DOMAIN> (?&NOT_RESERVED_IP) (?: (?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\. ){3} (?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?) ) (?<NOT_RESERVED_IP> (?!(?:1?0|224)(?:\.\d{1,3}){3}| (?:192\.168|172\.16)(?:\.\d{1,3}){2} ) ) (?<TLD>[^/#?\s.\d:-]+) (?<PORT>:\d{1,4}) (?<PATH>/(?:[^/\s&#?]*/?)+) (?<QUERY> \? (?: [^\s=]+(?:=[^&\s]*)? (?:&[^\s=]+(?:=[^&\s]*)?)* )? ) (?<HASH>\#.*) ) ^ (?&PROTOCOL) (?&LOGIN)? (?:(?&TEXT_DOMAIN)+(?&TLD)|(?&IP_DOMAIN)) (?&PORT)? (?&PATH)? (?&QUERY)? (?&HASH)? $
`
gmx

Description

Loading markdown...
Submitted by Firas Dib - 8 years ago