GNU的较less实用工具的手册页说了以下关于search:
/pattern Search forward in the file for the N-th line containing the pattern. N defaults to 1. The pattern is a regular expression,as recognized by the regular expression library supplied by your system.
我在各种系统上使用较less :我的个人Ubuntu笔记本电脑,我的CentOS云服务器,在工作中的Cygwin等。我一直想做负面预测和其他奇特的东西,但我不知道是什么正则expression式语法来使用。 我如何发现?
.htaccess重写规则,以防止caching的CSS,JS,图像文件。
JScript的正则expression式:行首不起作用?
在Windows上启用Perl中的颜色正则expression式debugging
如何从Nginx conf中排除目录?
boost :: regex_search – 增强杀死我的脑细胞,再次
这是一个编译时间参数。 less的./con@R_404_6408@ure脚本知道with-regex=LIB param。
这是来自上游软件包的自述文件:
–with正则表达式= LIB
Specifies the regular expression library used by less for pattern matching. The default is "auto",which means the con@R_404_6408@ure program finds a regular expression library automatically. Other values are: posix Use the POSIX-compatible regcomp. pcre Use the PCRE library. regcmp Use the regcmp library. re_comp Use the re_comp library. regcomp Use the V8-compatible regcomp. regcomp-local Use Henry Spencer's V8-compatible regcomp (source is supplied with less).
所以你需要知道“./con@R_404_6408@ured”是多少。 我已经在Debian / Ubuntu上进行了调查。 他们使用POSIX正则表达式库。
我仍然在寻找一种方法来检测它的动态脚本…
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。