例如 user:英翻中 You are braver than you believe.— Winnie the Pooh 释义:你比你相信的更勇敢。 —《小熊维尼》 在机器人中则捕捉到的是: 英翻中 You are braver than you believe.— Winnie the Pooh\n释义:你比你相信的更勇敢。 —《小熊维尼》 这样处理正则表达式提取不到,无法处理带有\n的数据
例如
user:英翻中 You are braver than you believe.— Winnie the Pooh
释义:你比你相信的更勇敢。 —《小熊维尼》
在机器人中则捕捉到的是:
英翻中 You are braver than you believe.— Winnie the Pooh\n释义:你比你相信的更勇敢。 —《小熊维尼》
这样处理正则表达式提取不到,无法处理带有\n的数据