Regular Expressions 101

Sponsors

Library entries

0
pcre2

Env Var

Regex to match Env Variable whole line
Submitted by anonymous - 4 months ago
0
pcre2

IP address with port

Match ip address with port
Submitted by PARNKOT - 4 months ago
0
pcre2

Get HTML attribute

Get HTML attribute with /" inside
Submitted by anonymous - 3 months ago
0
pcre2

股票代码

aa
Submitted by vv - 3 months ago
0
pcre2

ipv4 match

ipv4 match
Submitted by anonymous - 3 months ago
0
pcre2

scss class matching

scss class matching
Submitted by lucas - 3 months ago
0
pcre2

Note Body HTML

Match all valid HTML tags
Submitted by anonymous - 3 months 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