Regular Expressions 101

Sponsors

Library entries

0
dotnet

No leading or trailing spaces

No leading or trailing spaces
Submitted by anonymous - 4 days ago
0
dotnet

Ipv4 with optional port

ipv4 with optional port
Submitted by anonymous - 4 days ago
0
dotnet

E-mail

My first simple e-mail validator regex :)
Submitted by anonymous - 2 months ago
0
dotnet

篩選MP Log Day

篩選MP Log Day
Submitted by anonymous - 3 months ago
0
dotnet

Script Tag Json

asd
Submitted by anonymous - 3 months ago

URLS

Vote

0

Regular Expression
javascript

/
\b(?:(?:ht|f)tp(?:s?)\:\/\/|~\/|\/)?(?:\w+:\w+@)?((?:(?:[-\w\d{1-3}]+\.)+(?:com|org|net|gov|mil|biz|info|mobi|name|aero|jobs|edu|co\.uk|ac\.uk|it|fr|tv|museum|asia|local|travel|[a-z]{2}))|((\b25[0-5]\b|\b[2][0-4][0-9]\b|\b[0-1]?[0-9]?[0-9]\b)(\.(\b25[0-5]\b|\b[2][0-4][0-9]\b|\b[0-1]?[0-9]?[0-9]\b)){3}))(?::[\d]{1,5})?(?:(?:(?:\/(?:[-\w~!$+|.,=]|%[a-f\d]{2})+)+|\/)+|\?|#)?(?:(?:\?(?:[-\w~!$+|.,*:]|%[a-f\d{2}])+=?(?:[-\w~!$+|.,*:=]|%[a-f\d]{2})*)(?:&(?:[-\w~!$+|.,*:]|%[a-f\d{2}])+=?(?:[-\w~!$+|.,*:=]|%[a-f\d]{2})*)*)*(?:#(?:[-\w~!$ |\/.,*:;=]|%[a-f\d]{2})*)?\b
/
ig

Description

Loading markdown...
Submitted by anonymous - 5 years ago