fix Issue 12394 - Regression: std.regex unittests take agonizingly long ...

...to run - like hours on OSX