Regular Expressions 101

Community Library Entry

0

Regular Expression
Golang

`
(?P<indent>\s*)(?P<type>[\w]+)\s(?P<identifier>[\w\d]+)\s*=\s*
`
g

Description

Matches a variable with the following syntax; <indentation> <type> <name> =

example

string foo =

Submitted by Jordy van Domselaar <jordy.van.domselaar@outlook.com> - 7 years ago