欧芹中的逸出炭不能提取逸出的ch

2024-06-16 10:21:05 发布

您现在位置:Python中文网/ 问答频道 /正文

我有以下欧芹语法:

# one char version of whitespace
wsc = ' ' | '\t' | '\n' | '\r'
escapedChar = '\\\\' anything

symbol = <(escapedChar | ~(',' | ';' | wsc) anything)+>

当我用.escapedChar()解析\\,时,得到的字符串是,。但是,当我用.symbol()解析test\,时,得到的字符串是test\,,而不是test,


Tags: of字符串testversion语法symbolonewhitespace