• <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>

            的筆記

            隨時隨地編輯

            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.左邊的最后一個字符匹配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. 匹配第一次出現

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

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

              [^\x00-\x7F]

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

            婷婷综合久久中文字幕蜜桃三电影| 狠狠色丁香婷婷综合久久来| 久久成人国产精品| 久久精品桃花综合| 久久久综合香蕉尹人综合网| 91精品免费久久久久久久久| 国产韩国精品一区二区三区久久| 久久综合香蕉国产蜜臀AV| 久久精品人人做人人爽97 | 亚洲国产另类久久久精品小说 | 中文字幕无码精品亚洲资源网久久 | 久久久婷婷五月亚洲97号色 | 人妻久久久一区二区三区| 亚洲国产精品无码久久久蜜芽| 久久精品极品盛宴观看| 伊人精品久久久久7777| av色综合久久天堂av色综合在| 久久久一本精品99久久精品66| 国产人久久人人人人爽| 国产福利电影一区二区三区久久久久成人精品综合| 久久天天躁狠狠躁夜夜2020一| 久久久国产99久久国产一| 人妻久久久一区二区三区| 日本精品久久久久中文字幕8| 一本久久a久久精品综合夜夜| 久久综合一区二区无码| 亚洲午夜福利精品久久| 亚洲精品乱码久久久久久中文字幕| 波多野结衣久久精品| 久久无码人妻一区二区三区午夜 | 99久久精品无码一区二区毛片| 久久久久久毛片免费看| 精品国产乱码久久久久软件| 久久天天躁狠狠躁夜夜躁2014| 日本欧美久久久久免费播放网| 91精品国产综合久久久久久 | 欧美日韩中文字幕久久久不卡 | 久久综合九色综合网站| 久久国产高潮流白浆免费观看| 久久精品一区二区国产| 一日本道伊人久久综合影|