Regular Expressions 101

Sponsors

Library entries

2
javascript

Simple URL

Validate an URL input.
Submitted by @nuragic - 4 months ago
2
python

Extract parts of a URL on Python

Extract parts of a URL on Python
Submitted by dixanms - 4 months ago
2
python

Lua Enhanced: +=

Adds += to Lua.
Submitted by anonymous - 3 months ago
2
javascript

Error in Refex

no description available
Submitted by anonymous - 9 years ago
2
javascript

sample

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

US Postal Code

refactor
Submitted by jay johnson - 8 years ago
2
python

Parasite subtitles

no description available
Submitted by Andrey Spiridonov - 8 years ago

Accept url without www

Vote

5

Regular Expression
javascript

/
^(http:\/\/www\.|https:\/\/www\.|ftp:\/\/www.|www\.)[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$
/

Description

Loading markdown...
Submitted by anonymous - 8 years ago