Regex icon indicating copy to clipboard operation
Regex copied to clipboard

Crash on call regex.match(string)

Open iDevPro opened this issue 5 years ago • 3 comments

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

iDevPro avatar Jan 27 '19 21:01 iDevPro