Regular Expressions 101

Community Patterns

SuperJS: variable initializement

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> - 6 years ago