Railway Painter

by Karakaz

Automatically color stations and trains containing specified keywords

Content
6 years ago
0.15 - 0.16
7
Trains

g Escaping Regex?

5 years ago

I have a large factory with train stations named things like "Unload-Factory-Module.Mk2.Eff-01-Circuits.Adv" I would like to regex on "Unload-Factory-", but it keeps failing to color because the Regex doesn't like the dash. If I replace the dash with a period, it works fine. If I replace the dash with a character class (ie, "[-]") it works fine. If I try to escape the dash with the standard regex escape character of backslash "-", it fails. What Regex engine are you using?

New response