Regular Expressions 101

Library entries

0
pcre2

GSN

split words to keywords
Submitted by anonymous - 2 months ago
1
pcre2

BadDomainNamesDetected

/hostname=(?P\".*\")/gm
Submitted by KC.G - 2 months ago
0
pcre2

Record Date Rule (Semantic)

Record Date Rule (Semantic)
Submitted by Kasshyap - 2 months ago
0
pcre2

Add new line to every 2 sentences

-
Submitted by anonymous - 2 months ago
0
pcre2

regex for name unicode

regex detect name unicode
Submitted by hao.nguyen - 2 months ago
0
pcre2

match glassId

使用边界来匹配输出
Submitted by anonymous - 2 months ago
0
pcre2

chapter

a
Submitted by anonymous - 2 months ago

Strict URL validation

Vote

0

Regular Expression
pcre2

/
(?!.*[.]{2})((https?|http)\:\/\/)?([a-z0-9+!*(),;?&=\$_.-]+(\:[a-z0-9+!*(),;?&=\$_.-]+)?@)?([a-z0-9-.-.]?(?!.*\/).*)\.([a-z]{2,1000})(\:[0-9]{2,5})?(\/([a-z0-9+\$_-]\.?)+)*\/?(\?[a-z+&\$_.-][a-z0-9;:@&%=+\/\$_.-]*)?(#[a-z_.-][a-z0-9+\$_.-]*)?
/
gm

Description

Loading markdown...
Submitted by Adwin Raj GP - 4 months ago