Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Golang

`
service\-(?P<serviceName>[a-zA-Z]+[a-zA-Z-]+[a-zA-Z]+)\-v(?P<versionMajor>[0-9]+)\.(?P<versionMinor>[0-9]+)\.(?P<versionPatch>[0-9]+)(?:\-(?P<versionType>alpha|beta|rc)(?:\.(?P<versionTypeNumber>[0-9]+)))?\.(?P<fileExt>gtw)
`
g

Description

This regular expression is used to validated the filename of Gateway plugins.

Submitted by Julien BREUX - 7 years ago