Regular Expressions 101

TDJ setlist.vbs trackTitlePattern

Open Workspace
  • PCRE (Legacy)
  • Unit Tests
1

Regular Expression

/
^(?:.*? #[0-9]+ )?([^\[]+?) *(?:\[.+)?$
/

Description

Removes up to and including #n...n and including and beyond [ ' e.g. ...Baby One More Time #1 [0s]

Submitted by Chris