Regular Expressions 101

Library entries

Domain validation regex suitable for user input

Vote

0

Regular Expression
golang

`
^(?:(?:[_a-z0-9](?:[_a-z0-9-]{0,61}[a-z0-9])?|[0-9]{1,3}?/[0-9]{2})\.)+(?:[a-z](?:[a-z0-9-]{0,61}[a-z0-9])?)?$
`
gim

Description

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