我有以下表达式:[^(\r\n)]*
识别任何不包含\r\n
. 但是,当文本包含(
或)
无法识别时。
例子:
"I have following expression to recognize any text."
将被识别OK。"I have following expression (A) to recognize any text."
不会被识别。
因此,我想要完整的文本:"I have following expression (A) to recognize any text."