Closed
Description
I created a minimal working example for a problem in the regular expression engine. I was able to reproduce the issue on the latest stable release 1.8.3, on 1.9.0-alpha1, and on master built today. It seems to be a problem with the engine failing to backtrack.
julia> match(r"a+[bc]+c", "ababc")
julia> versioninfo()
Julia Version 1.10.0-DEV.156
Commit 9be3c85e49 (2022-12-19 21:17 UTC)
Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
CPU: 72 × Intel(R) Xeon(R) Gold 6150 CPU @ 2.70GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-14.0.6 (ORCJIT, skylake-avx512)
Threads: 1 on 72 virtual cores
julia> match(r"a+[bc]+c", "ababc")
julia> versioninfo()
Julia Version 1.8.3
Commit 0434deb161 (2022-11-14 20:14 UTC)
Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
CPU: 72 × Intel(R) Xeon(R) Gold 6150 CPU @ 2.70GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-13.0.1 (ORCJIT, skylake-avx512)
Threads: 1 on 72 virtual cores