Regular Expressions 101

Sponsors

Library entries

0
java

tas-branch-validation

tas-branch-validation
Submitted by doron-hafner - 14 days ago
0
pcre2

CSS Class Styles

Regex to find CSS Class Styles
Submitted by JR - 15 days ago
0
javascript

Match HTML tag with specific attributes

1
Submitted by anonymous - 15 days ago
0
pcre2

email

validate email
Submitted by anonymous - 16 days ago
0
pcre2

PAN Number (India)

Format of PAN Number (issued in India)
Submitted by anonymous - 16 days ago
0
pcre2

my_device_usage

usage
Submitted by Keith - 17 days 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) - 5 months ago