diff --git a/src/std/regexp.c b/src/std/regexp.c index 7a032dc7a..8187e771d 100644 --- a/src/std/regexp.c +++ b/src/std/regexp.c @@ -49,7 +49,7 @@ HL_PRIM ereg *hl_regexp_new_options( vbyte *str, vbyte *opts ) { size_t error_offset; pcre2_code *p; uchar *o = (uchar*)opts; - int options = PCRE2_UCP | PCRE2_UTF; + int options = PCRE2_ALT_BSUX | PCRE2_UCP | PCRE2_UTF; while( *o ) { switch( *o++ ) { case 'i':