Regular Expressions 101

Sponsors

Library entries

2
pcre

Filtrar inicio string

Filtrar inicio da string por BRN ou 201
Submitted by Leandro - 8 years ago
0
pcre

trim IP

find leading zeros in ipv4 adresses
Submitted by anonymous - 8 years ago
1
pcre

phone number

accept number , space, . and -
Submitted by sylvain - 8 years ago
0
pcre

Matches dash-seperated terms in.

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

Valid date ddMMyyyy + .zip extension

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

images url match in text

no description available
Submitted by Redfern.89 - 8 years ago
1
pcre

magic URL regex

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

csv parsing

csv parsing with content quota string
Submitted by Andrey - 8 years ago
23
pcre

userName

1-15 alphanumeric login name
Submitted by gsanchezc - 8 years ago
0
pcre

Check_Email

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

matching sentence

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

Phone Number Extractor

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

get all files

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

Any mail address

Any mail address
Submitted by Himalay - 8 years ago
3
pcre

split sentence regex

no description available
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