Issue #1226926 by Zombienaute, atiras, others: Characters after x flag in regular expression was causing things to break horribly on Windows for some reason
Closes #2789953