Regular Expressions 101

Sponsors

Library entries

0
javascript

Matches filenames in urls

Filenames in urls
Submitted by anonymous - 2 days ago
0
pcre

inefficient int/float(exponent)

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

sql inj

as
Submitted by anonymous - 6 days ago
0
pcre

amazIng regex

super
Submitted by anonymous - 7 days ago
0
pcre

Only if before

Only if needle is before target
Submitted by anonymous - 9 days ago
0
javascript

Currency

Currency
Submitted by jerryd - 9 days ago

Regex for url

Vote

1

Regular Expression
javascript

/
([\w+]+\:\/\/)?([\w\d-]+\.)*[\w-]+[\(\)\#\.\:]\w+([\(\)\/\?\=\&\#\.]?[\w-]+)*\/?[\(\-\w\)\?\=\#_]*
/
gm

Description

Loading markdown...
Submitted by anonymous - 2 months ago