Fix issue 12713 std.regex.regex crashes with SEGV, illegal instruction resp. assertion failure with certain bad input
Merge pull request #2165 from DmitryOlshansky/issue-12713

Fix issue 12713 std.regex.regex crashes with SEGV, illegal instruction r...