Regular Expressions 101

Sponsors

Library entries

0
javascript

NZ Phone Number

no description available
Submitted by anonymous - 5 years ago
0
javascript

JSON object key matcher

Matches JSON object keys
Submitted by Ariel Schiavoni - 5 years ago
0
javascript

校验中文

字符串仅能是中文。
Submitted by anonymous - 5 years ago
0
javascript

校验身份证号码

18位
Submitted by anonymous - 5 years ago
0
javascript

校验身份证号码

15位
Submitted by anonymous - 5 years ago
0
javascript

校验IP-v4地址

IP4 正则语句
Submitted by anonymous - 5 years ago
0
javascript

校验IP-v6地址

IP4 正则语句
Submitted by anonymous - 5 years ago
0
javascript

aHex color

no description available
Submitted by @hachesilva - 5 years ago
0
golang

Customer

no description available
Submitted by anonymous - 5 years ago

Parse URL then Breakdown into parts

Vote

0

Regular Expression
javascript

/
(?<protocol>(?:https?:\/\/?)+(?:www(?!.))?)?(?<tdl>[a-zA-Z0-9@:._-]{2,256}\.[a-z0-9]{2,6}(?:[:0-9]{1,5})?)(?<path>(?:\/)[-a-zA-Z0-9\/_]+)?(?<params>[-a-zA-Z0-9?%#+()=&]+)?
/
gm

Description

Loading markdown...
Submitted by ROMVoid95 - a year ago