• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            的筆記

            隨時(shí)隨地編輯

            Regular expressions in Notepad

            I.source

            How to use regular expressions in Notepad++
            http://sourceforge.net/apps/mediawiki/notepad-plus/index.php%3Ftitle%3DRegular_Expressions

            Source of this information is the Scintilla edit component help
            http://www.scintilla.org/SciTERegEx.html

            Notepad++ implements reg-exes in a subset of Posix mode only
            http://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=Unsupported_Regex_Operators

            operator was introduced in Scintilla v2.25 (not yet documented)
            http://www.scintilla.org/ScintillaDoc.html

            0000

            II.regular brother plugins

            Ctrl+R or in the TextFX -> TextFX Quick -> Find/Replace


            III.regular

            1. .

              Matches any character.
            2. \x

              This allows you to use a character x that would otherwise have a special meaning. For example, \[ would be interpreted as [ and not as the start of a haracter set.
            3. [...]

              This indicates a set of characters, for example, [abc] means any of the characters a, b or c. You can also use ranges, for example [a-z] for any lower case character.
            4. [^...]

              The complement of the characters in the set. For example, [^A-Za-z] means any character except an alphabetic character. Multiplying operators
            5. +

              This matches 1 or more instances of the previous character, as many as it can. For example, Sa+m matches Sam , Saam , Saaam and so on. [aeiou]+ matches consecutive strings of vowels.
            6. *

              This matches 0 or more instances of the previous character, as many as it can. For example, Sa*m matches Sm , Sam , Saam , Saaam and so on.
            7. ?

              Zero or one of the last character. Thus Sa?m matches Sm and Sam, but not Saam.左邊的最后一個(gè)字符匹配0次或1次
            8. *?

              Zero or more of the previous group, but as few as possible. Thus, .*o won't ever match because .* gobbles everything up to the end of line. .*?o matches everything up to and incuding the next 'o'.
            9. +?

              One or more of the previous group, but as few as possible. Anchors
            10. ^

              This matches the start of a line (except when used inside a set, see above).
            11. $

              This matches the end of a line.
            12. \<

              This matches the start of a word using Scintilla's definitions of words.
            13. \>

              This matches the end of a word using Scintilla's definition of words.
            14. (...)

              Parentheses mark the start of a region for tagging a match; so what's inside ( ) you can use in "replace with" using \1, \2 etc. Important: Unlike many other regular-expression engines, parentheses do not create subexpressions.

            IV.Case

            1. 匹配第一次出現(xiàn)

              “abcdefabcdef”匹配到第一次出現(xiàn)的字符--->"^.+?f":=abcdef
            2. 去掉代碼行前的數(shù)字

              ^[0-9]+?
              ^[0-9].+?
              ^[0-9] ?
            3. 查找中文字符(utf8)

              [^\x00-\x7F]

            posted on 2011-07-04 19:45 的筆記 閱讀(306) 評論(0)  編輯 收藏 引用

            久久婷婷五月综合97色直播| 国产精品成人99久久久久| 国产精品久久久久久搜索| 亚洲国产精品成人久久蜜臀| 国产免费福利体检区久久| 国产成人精品久久免费动漫| 青草国产精品久久久久久| 色妞色综合久久夜夜| 国产午夜福利精品久久| 亚洲一区二区三区日本久久九| 国内精品久久久久影院一蜜桃| 久久99国产综合精品女同| 久久久久亚洲AV无码永不| 久久亚洲精精品中文字幕| 久久久国产乱子伦精品作者| 无遮挡粉嫩小泬久久久久久久| 久久SE精品一区二区| 久久香蕉超碰97国产精品| 国产精品久久一区二区三区| 久久国产精品久久久| 亚洲午夜福利精品久久| 四虎影视久久久免费观看| 久久亚洲AV无码精品色午夜麻豆| 久久婷婷五月综合国产尤物app| 狠狠色噜噜色狠狠狠综合久久| 伊人久久大香线蕉亚洲 | 性欧美丰满熟妇XXXX性久久久| 久久亚洲中文字幕精品有坂深雪| 91久久精品91久久性色| 精品国产91久久久久久久a| 性高湖久久久久久久久AAAAA| 97精品伊人久久久大香线蕉 | 国产精品日韩欧美久久综合| 开心久久婷婷综合中文字幕| 亚洲午夜久久久久久久久久| 久久最近最新中文字幕大全| 日本久久中文字幕| 精品久久久久久无码中文字幕一区| 国产精品免费久久久久电影网| 国内精品伊人久久久久妇| 国内精品久久久久久野外|