Regular Expressions 101

Sponsors

Library entries

1
golang

Flexible box

no description available
Submitted by anonymous - 2 years ago
1
golang

Lxx Wurzel

no description available
Submitted by anonymous - 2 years ago
1
golang

lsblk-output-regex

Trying to adapt this regex to support LVM.
Submitted by anonymous - a year ago
1
golang

SQL comments Big Query

SQL comments on Big Query
Submitted by anonymous - a year ago
1
golang

Siebel Id

no description available
Submitted by anonymous - 6 years ago

https://twitter.com/MGWVc

Vote

0

Regular Expression
golang

`
^(?P<major>0|[1-9]\d*)\.(?P<minor>0|[1-9]\d*)\.(?P<patch>0|[1-9]\d*)(?:-(?P<prerelease>(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+(?P<buildmetadata>[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$
`
gm

Description

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