且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

带文本板的多行正则表达式

更新时间:2023-02-21 14:07:06

完全有可能,而且很简单:)您只需使用\n

It is entirely possible, and simple :) You just use \n

此搜索:

we\nwill

在此伪文本中匹配第1行的结尾和第2行的开头:

Matches the end of line 1 and the start of line 2 in this dummy text:

this is a test and we
will see if it matches
multiple lines.