Regular Expressions 101

Community Patterns

parseTagFromName simplify name

0

Regular Expression
ECMAScript (JavaScript)

/
^\s*\[?(TEST COOKIE|100% to v\d)\]?:?\s*
/
igm

Description

This removed some extra tags from the name of an experiment to make the next match part simpler.

Submitted by anonymous - 2 years ago