從制造到創造
          軟件工程師成長之路
          posts - 292,  comments - 96,  trackbacks - 0
          目標:將形如(tppabs="js_3.htm#window 窗口對象")之類的問題替換成新的文字。
          規則:以(tppabs=")開頭,(")結尾,中間有任意個字符
          Java:^tppabs=".*"$
          EditPlus(替換時注意選擇"正則表達式"):^tppabs=".*"   如果末尾加美元符號($),則不行!

           

          Eclipse的正則表達式插件:Regular Expression Tester

          Eclipse Regular Expression Tester


          Features

          • Test and search for regular expression
          • Matches are colorized, for an easy visual clue
          • Support for pattern flags (e.g. Pattern.DOTALL)
          • LiveEval evaluates your regular expression while you are typing it, gives feedback on possible errors and shows any matches automatically
          • LiveEval is supported for changes of the regular expression, the search text and the pattern flags
          • 4 distinct match modes:
            • Find a sequence of characters
            • Match a complete text
            • Split text
            • Replace every occurence of the regex with a different string
              Replacing supports back references ($1,$2,...)
          • LiveEval for match mode changes
          • Context sensitive "Regular Expression Assist"
          • Selective evaluation of expressions
          • Bracket Matching
          • Generation of string literals based on the regexp, e.g. "\(x\)" becomes "\\(x\\)"
          • De-escape patterns in your code, e.g. \\(x\\) becomes \(x\)
          • Improved "Clear Menu", choose which parts of the view you would like to get cleared every time you press the clear button
          • Easy movement through matches: Choose "Previous Match" or "Next Match" and cycle through all matches found.
          • Polished and accessible user interface, everything is reachable via keyboard

          Download the plugin

          Download the most recent version as a zip file
          update site: http://brosinski.com/regex/update

          • Unzip it to ECLIPSE_HOME
          • Restart Eclipse
          • In Eclipse, choose Window > Show View > Other > RegEx Tester
          • Configure it in Window > Preferences > RegEx Tester

          If you like RegEx Tester, please rate it at eclipse-plugins.info.

          The plugin requires a 1.4 JRE/JDK and Eclipse 3.0 or later.

          There is an old (sorry) user guide which can also be found here.
          posted on 2008-06-18 15:08 CoderDream 閱讀(518) 評論(0)  編輯  收藏 所屬分類: 經驗點滴

          <2008年6月>
          25262728293031
          1234567
          891011121314
          15161718192021
          22232425262728
          293012345

          常用鏈接

          留言簿(9)

          我參與的團隊

          隨筆分類(245)

          隨筆檔案(239)

          文章分類(3)

          文章檔案(3)

          收藏夾(576)

          友情鏈接

          搜索

          •  

          積分與排名

          • 積分 - 459691
          • 排名 - 114

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 上饶县| 霍城县| 南木林县| 潜江市| 万山特区| 全南县| 克什克腾旗| 枣庄市| 雅安市| 灵寿县| 利辛县| 格尔木市| 德令哈市| 山东| 甘泉县| 屯留县| 双鸭山市| 广德县| 乐平市| 沈丘县| 雷州市| 中卫市| 新津县| 雅江县| 大理市| 中山市| 宾川县| 连城县| 银川市| 建湖县| 深水埗区| 九龙坡区| 康定县| 阿拉善左旗| 高陵县| 连南| 稷山县| 金坛市| 墨脱县| 龙井市| 边坝县|