Regular Expressions 101

Community Patterns

Community Library Entry

4

Regular Expression
ECMAScript (JavaScript)

/
((?:http|https|ftp|ftps)(?:\:\/\/)+)?(?:([A-z0-9\-]+)\:([A-z0-9\-]+))?\@?([A-z0-9\-]+)(\.[a-z\.]+)
/
gm

Description

supports all major protocols

Submitted by matheus silva - 10 years ago