Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/regex/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Regex Textwrangler grep正则表达式引用?_Regex_Reference_Grep_Textwrangler - Fatal编程技术网

Regex Textwrangler grep正则表达式引用?

Regex Textwrangler grep正则表达式引用?,regex,reference,grep,textwrangler,Regex,Reference,Grep,Textwrangler,我正在搜索Textwrangler中使用的正则表达式的综合表/列表。 这本手册很好,但它缺乏一个可以检查的快速参考备忘单的概述 THX;) 我选择了以下部分: 图案修改器(开关) 正则表达式元字符: 案例转换操作员 空白还是非空白 链接到的文档中有更多内容Awesome!!!谢谢!!现在我明白了,就像Perl一样,哈哈。。。嗯,有点。我目前正在写非常长的正则表达式,我想知道是否可以对它们发表评论。。。嗯,使用?imsx模式,您甚至可以为意大利面表达式添加漂亮的格式:)酷!!(我不能投你的赞成

我正在搜索Textwrangler中使用的正则表达式的综合表/列表。 这本手册很好,但它缺乏一个可以检查的快速参考备忘单的概述

THX;)

我选择了以下部分:

图案修改器(开关) 正则表达式元字符: 案例转换操作员 空白还是非空白

链接到的文档中有更多内容

Awesome!!!谢谢!!现在我明白了,就像Perl一样,哈哈。。。嗯,有点。我目前正在写非常长的正则表达式,我想知道是否可以对它们发表评论。。。嗯,使用?imsx模式,您甚至可以为意大利面表达式添加漂亮的格式:)酷!!(我不能投你的赞成票,因为我还需要一些代表点:(为什么这个有用的、已经回答的问题作为话题关闭,而不是仅仅迁移到超级用户?
i             Case-insensitive
m             Multiline   : allow the grep engine to match at  ^ and $ after and before at \r or \n.
s             Magic Dot   : allows . to match \r and \n
x             Free-spacing: ignore unescaped white space; allow inline comments in grep patterns.

(?imsx)       On
(?-imsx)      Off
(?i-msx)      Mixed
.             Any character except newline or carriage return
[ ]           Any single character of set
[^ ]          Any single character NOT of set
*             0 or more previous regular expression
*?            0 or more previous regular expression (non-greedy)
+             1 or more previous regular expression
+?            1 or more previous regular expression (non-greedy)
?             0 or 1 previous regular expression
|             Alternation
( )           Grouping regular expressions
^             Beginning of a line or string
$             End of a line or string
{m,n}         At least m but most n previous regular expression
{m,n}?        At least m but most n previous regular expression (non-greedy)
\1-9          Nth previous captured group
\&            Whole match                                     # BBEdit: '&' only - no escape needed
\`            Pre-match                                       # PCRE?  NOT BBEdit
\'            Post-match                                      # PCRE?  NOT BBEdit
\+            Highest group matched                           # PCRE?  NOT BBEdit
\A            Beginning of a string
\b            Backspace(0x08)(inside[]only)                   # PCRE?
\b            Word boundary(outside[]only)
\B            Non-word boundary
\d            Digit, same as[0-9]
\D            Non-digit
\E            Change case - acts as an end delimiter to terminate runs of \L & \U.
\l            Change case of only the first character to the right lower case. (Note: lowercase 'L')
\L            Change case of all text to the right to lowercase.
\u            Change case of only the first character to the right to uppercase.
\U            Change case of all text to the right to uppercase.
\t            Tab
\n            Linefeed
\r            Return
\f            Formfeed
\s            Whitespace character equivalent to [ \t\n\r\f]
\S            Non-whitespace character
\W            Non-word character
\w            Word character[0-9A-Za-z_]
\z            End of a string
\Z            End of a string, or before newline at the end
(?#)          Comment
(?:)          Grouping without backreferences
(?=)          Zero-width positive look-ahead assertion
(?!)          Zero-width negative look-ahead assertion
(?>)          Nested anchored sub-regexp stops backtracking
(?imx-imx)    Turns on/off imx options for rest of regexp
(?imx-imx:…)  Turns on/off imx options, localized in group    # '…' indicates added regex pattern