Regular Expressions 101

Sponsors

Library entries

1
pcre

URL Validator (HTTP and HTTPS)

Validate one URL HTTP and HTTPS
Submitted by Joaquim - 6 hours ago
0
pcre

Mysite

Hello
Submitted by anonymous - 6 hours ago
0
pcre

MBI Regex

validates against the MBI format published by CDC
Submitted by i410hlr - 2 days ago
0
pcre

Parse arguments

Parse arguments
Submitted by Ofir Yariv - 2 days ago
0
pcre

User-Agent

Parser
Submitted by sn3kdev - 7 days ago
0
pcre

Parcing2

aa
Submitted by anonymous - 9 days ago
0
pcre

trim phone number

trim phone number
Submitted by anonymous - 9 days ago
0
golang

log timestamp

extract time stamp from log entry
Submitted by anonymous - 10 days ago
0
pcre

NMEA after timestamps

Picks up (most?) NMEA messages.
Submitted by David Harrison - 18 days ago
0
golang

Golang Get variables In Js

To get
Submitted by anonymous - a month ago
0
pcre

decamelize

pascal case to snake case
Submitted by anonymous - a month ago
0
golang

Date String ISO Pattern

Date String ISO Pattern matcher
Submitted by Lucas Morais - 2 months ago

Url breakdown

Vote

0

Regular Expression
pcre2

/
^(?<fulldomain>(?<protocol>[a-z]{2,6}):\/\/(?:((?<subdomain>[a-z0-9\-\.]*\.){0,99})(?<domain>[a-z\-0-9]{1,100})\.(?<extension>[a-z]{1,10})|(?<ipaddress>(?:25[0-5]|2[0-4]\d|[0-1]?\d{1,2})(?:\.(?:25[0-5]|2[0-4]\d|[0-1]?\d{1,2})){3})|(?<localhost>localhost))(?<port>\:[0-9]{1,6}){0,1})\/?(?<filepath>(?<path>[a-z0-9\-_%]{1,20}\/{1}){0,}(?<filename>[a-z0-9\-_]{1,20}\.[a-z0-9]{2,6}){0,1}){0,1}(?<route>(\/[a-z_0-9\-_]{1,20}){1,}){0,10}(?<query>\?[a-z0-9%\+_\-&=\.@\!,\:]{0,200}){0,1}$
/
gm

Description

Loading markdown...
Submitted by jokle - 4 months ago