• <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)  編輯 收藏 引用

            久久综合久久综合久久综合| 青春久久| 亚洲国产精品婷婷久久| 一本大道加勒比久久综合| 污污内射久久一区二区欧美日韩| 久久精品国产亚洲AV不卡| 久久精品人人做人人爽电影| 欧美伊香蕉久久综合类网站| 一级a性色生活片久久无| 久久久久亚洲av无码专区喷水 | 99精品久久精品一区二区| 久久精品国产影库免费看 | 精品熟女少妇av免费久久| 99久久精品免费观看国产| 99久久国产综合精品女同图片| 四虎国产永久免费久久| 久久人人爽人人人人片av| 国内精品伊人久久久久影院对白| 日韩人妻无码精品久久久不卡| 精品久久综合1区2区3区激情| 亚洲欧美日韩久久精品第一区| 久久综合五月丁香久久激情| 欧美日韩中文字幕久久伊人| 亚洲日本va中文字幕久久| 亚洲精品国产自在久久| 久久久精品波多野结衣| 色噜噜狠狠先锋影音久久| 国产午夜免费高清久久影院 | 欧美噜噜久久久XXX| 久久久久亚洲av综合波多野结衣| 久久乐国产精品亚洲综合 | 欧美精品久久久久久久自慰| 亚洲欧美一区二区三区久久| 久久免费香蕉视频| 久久久久久噜噜精品免费直播| 九九久久精品无码专区| 国产免费久久精品丫丫| 国产女人aaa级久久久级| 久久久无码精品亚洲日韩软件| 久久综合久久综合九色| 99久久综合国产精品二区|