Regular Expressions 101

Sponsors

Library entries

0
java

Detect [YOTI] in string.xml

we can use this regex?
Submitted by anonymous - a year ago
0
pcre2

Les_crises

Articles revue "Les crises". Clean comments
Submitted by anonymous - a year ago
0
golang

Address

Address check
Submitted by anonymous - a year ago
0
golang

Another regex test

Testing for BetterDiscord chat alias plugin
Submitted by anonymous - a year ago
0
python

Well Defined Branch Names

Checks for well defined branch names
Submitted by anonymous - a year ago
0
python

N-Word Regex

N-Word Regex Status Not finished, highly broken
Submitted by anonymous - a year ago
0
pcre2

任意字符串

(.*)
Submitted by kobunketsu - a year ago
0
pcre

Keep Number and .,

Keep Number and .,
Submitted by HUUTAI - a year ago
0
pcre2

Get date from string

Get date from string
Submitted by anonymous - a year ago

URL check

Vote

1

Regular Expression
javascript

/
^(?:tcp|ip|udp|pop|smpt|t?ftp|https?):\/\/(?:[a-zA-Z]+:[a-zA-Z\.=%#\-_&]+@)?(?![\.\-])(?:(?:[a-z-A-Z0-9\-](?!\-{2,})){1,63}\.(?:[a-zA-Z0-9\-](?!\-{2,})){1,63}\.?(?:[a-zA-Z0-9\-](?!\-{2,})){1,63}?\.?(?:[a-zA-Z0-9\-](?!\-{2,})){1,63}?)(?:\:(?:[0-9]{1,4}|[0-6][0-5]{1,2}[0-3][0-5]))?(?:\/|\/(?!\/)(?:[a-zA-Z0-9\-\/](?!\/{2,}))+)?(?:\?(?:(?:[a-zA-Z0-9\-\_\=\&\:\+]|%(?:[A-Z0-9]){2})(?!%{2,}|={2,}|&{2,}|\+{2,}))+)(?:#(?:(?:[a-zA-Z0-9\=\-\_\:\~]|%[A-Z0-9]{2})(?!\={2,}|~{2,}|:{2,}|\-{2,}|\_{2,}))*)?$
/

Description

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