Regular Expressions 101

Sponsors

Library entries

0
javascript

MyRegex

Parse
Submitted by anonymous - 2 hours ago
0
javascript

import syntax for regex with grouping

HAYO!
Submitted by CreeJee - 18 hours ago
0
javascript

Capture Words

Get each word from a text.
Submitted by anonymous - 2 days ago
0
pcre

Negative search

Seach pattern that doesn't match
Submitted by Gael Langlais - 3 days ago
0
javascript

File extension

Parse file extension.
Submitted by Webmato - 3 days ago
0
java

date dd.mm.yyyy

Date format dd.mm.yyyy
Submitted by anonymous - 3 days ago
0
javascript

Matches filenames in urls

Filenames in urls
Submitted by anonymous - 8 days ago
0
java

partnkey value

Extract value partn_key
Submitted by anonymous - 9 days ago
0
pcre

inefficient int/float(exponent)

match a single number
Submitted by anonymous - 11 days ago
0
javascript

sql inj

as
Submitted by anonymous - 11 days ago
0
pcre

amazIng regex

super
Submitted by anonymous - 12 days ago

URL regexp

Vote

40

Regular Expression
pcre

/
((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[.\!\/\\w]*))?)
/
ig

Description

Loading markdown...
Submitted by Matthew O'Riordan - 10 years ago