Regular Expressions 101

Community Patterns

5

ipv6

PCRE (PHP <7.3)
Match an ipv6 address
Submitted by Frusty - 8 years ago

Date String ISO Pattern

0

Regular Expression
Golang

`
^(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))$
`
gm

Description

Loading markdown...
Submitted by Lucas Morais - a year ago