Sublime Forum

Regex - conditional output

#1

Im currently writing some snippets and I need to check if the TM_FILEPATH contains a specific word/folder.
Depending on this the regex should output different things.

How do I do a conditional merge or output with sublime texts regex?

0 Likes