Regular Expressions 101

Sponsors

Library entries

2
javascript

Extract info from anime filename

no description available
Submitted by Haellsigh - 7 years ago
1
pcre

regex

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

yous

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

Adyen reason when AUTHORISATION success

no description available
Submitted by anonymous - 7 years ago
10
pcre

remove comments from php code

no description available
Submitted by anonymous - 7 years ago
1
python

StackOverflow 30430783

no description available
Submitted by Honza Osobne - 7 years ago
1
python

phanindra.vaga.ranama

sdf
Submitted by asdf - 7 years ago
1
javascript

t4

43t
Submitted by 34t - 7 years ago
1
pcre

Thai Name match

no description available
Submitted by itpcc - 7 years ago
1
pcre

Wyrażenie sprawdzające wiek od 0 do 200

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

extract values inside <![CDATA[...]]

no description available
Submitted by anonymous - 7 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 - 7 years ago