Regex
Regex copied to clipboard
Crash on call regex.match(string)
Hello,
let myRegex = try Regex("/some/([\\w\\d\\s,]+)/ig")
caused:
error: Execution was interrupted, reason: EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0). The process has been returned to the state before expression evaluation.
when call:
myRegex.match("/some/some123 some")
In the Python this regex pattern:
r"/some/([\w\d\s,]+)"
work perfect