【发布时间】:2021-04-11 22:09:57
【问题描述】:
例句是:
"Thanks to this crisis, there has been a wake-up call to some of these neobanks," said Ali Niknam, CEO and founder of Dutch online
bank Bunq. "To run a healthy business, you need healthy business conduct."
我的正则表达式是
(said)\s.*,\s(CEO and founder of)\s.*\.
我希望它匹配到
said Ali Niknam, CEO and founder of Dutch online
bank Bunq.
但不是因为在线字后的break。有没有办法在不修改示例文本的情况下使其工作?
【问题讨论】:
-
检查已编辑的句子。所以以某种方式吃了它的方式
-
好的试试这个:
said\s[\s\S]*?,\sCEO and founder of\s[\s\S]*?\.
标签: regex typescript