我尝试在Julia中编写使用回顾后发模式的解析器时,它会抛出PCRE编译错误
。
function parser(str::String)
a = match(r"^[a-zA-Z]*_[0-9]", str)
b = match(r"(?<=[a-zA-Z]*_[0-9]_)[a-zA-Z]", str)
a.match, b.match
end
parser("Block_1_Fertilized_station_C_position_23 KA1F.C.23")
# LoadError: PCRE compilation error: lookbehind assertion is not fixed length at offset 0
能否有人解释一下我做错了什么?