Regular Expressions 101

Sponsors

Library entries

0
javascript

Email

Email
Submitted by anonymous - a month ago
0
javascript

Find Japanese

Find Japanese
Submitted by nghilq - a month ago
0
javascript

Only numbers and length 9

Only numbers and length 9
Submitted by anonymous - a month ago
0
golang

Date String ISO Pattern

Date String ISO Pattern matcher
Submitted by Lucas Morais - a month ago
0
javascript

vue sfc script tag

Regexp to match vue sfc script tag
Submitted by YuTengjing - a month ago

URL Parts Extractor

Vote

1

Regular Expression
javascript

/
^((?:(?:http|ftp|ws)s?|sftp):\/\/?)?([^:/\s.#?]+\.[^:/\s#?]+|localhost)(:\d+)?((?:\/\w+)*\/)?([\w\-.]+[^#?\s]+)?([^#]+)?(#[\w-]*)?$
/
gm

Description

Loading markdown...
Submitted by Elie Grenon (elie-g) - 3 months ago