Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Created·2026-01-17 07:52
Flavor·Golang

`
^[a-z][a-z\-\+.]+:(?:\/\/)?
`
gm
Open regex in editor

Description

Simple prefix matcher for validating URI Schemes according to RFC2396, Section 3.1

Go Playground: https://go.dev/play/p/vtYEugsNAfo

Submitted by Gwyneth Llewelyn