带文本板的多行正则表达式 [英] multiline regular expression with textpad
本文介绍了带文本板的多行正则表达式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我不知道如何使文本板执行扩展多行的正则表达式.
I can't figure out how to make textpad perform a regular expression that extends multiple lines.
我尝试将perl语法与/myregex/m一起使用,并以m为修饰符,但这没有用.我看不到复选框或编辑器中的任何内容告诉它执行多行操作.
I tried using perl syntax with /myregex/m with m as a modifier but that didnt' work. I can't see a checkbox or anything in the editor to tell it to do multiline.
有人有什么想法吗?
推荐答案
完全有可能,而且很简单:)您只需使用\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.
这篇关于带文本板的多行正则表达式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文