Regular Expressions 101

Sponsors

Library entries

0
javascript

UA phone number

check ua phone number
Submitted by anonymous - 2 days ago
0
javascript

array path

Extract the array path from a nested path
Submitted by anonymous - 2 days ago
0
javascript

replace text in tag

find and replace text in tag
Submitted by anonymous - 4 days ago
0
javascript

only .ts .tsx .js .jsx

get files extension
Submitted by HZ - 4 days ago
0
javascript

Get YouTube ID in link

regex for get video id in link
Submitted by anonymous - 5 days ago
0
javascript

Email regex

email regex with subdomain
Submitted by anonymous - 13 days ago
1
javascript

提取步骤1

提取步骤1
Submitted by liangchao - 22 days ago

GET formated URLs

Vote

1

Regular Expression
pcre

/
(?(DEFINE) (?<WebAddress> (?&Protocol){0,}(?&Host)(?:\:(?&Port)){0,1}(?&Path){0,1})(?=\s|$) (?<Protocol> \w{2,}\:\/\/) (?<Host> (?&NameParts)(?&Suffix)) (?<NameParts> (\w{2,}\.){1,}) (?<Suffix> (\w{2,})) (?<Port> (\d{1,5})) (?<Path> (\/\S{1,})) ) ((?&WebAddress))
/
xmg

Description

Loading markdown...
Submitted by rleonard - 6 years ago