Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Golang

`
\.version\s*=\s*['"]?(.*?)(?:['"]|$)
`
gm

Description

Determine the version value in a gemspec configuration file

Submitted by Ori - 2 years ago