匹配整行正则表达式


  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