匹配整行正则表达式

  1. 匹配以某字符串开头的整行正则表达式

如:“I do not expect tariffs to be something that will be on the agenda for tomorrow night,” a senior Biden administration official told reporters Sunday during a background briefing on the highly anticipated video call.

正则表达式:
^“I do not.*$

  1. 匹配任意含Biden的整行

如:Asked whether Biden and Xi would discuss the current global supply chain crisis, the official said it was also “not something I expect to be a significant point of discussion.

正则表达式:
^.*Biden.*$

posted @ 2021-11-16 10:16  易点灵通  阅读(1312)  评论(0)    收藏  举报