匹配整行正則表達式


  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.*$


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM