EditPlus中的正規表示式實戰(6)
廢話不多說了,看下面程式碼吧。
fbkh, jiancharq, shoujianyz, shoujianyt, mociyj, yuchanqi, yindaofm, pougongc, yunci, chanci, zhiye, minzu, minzumc, wenhuacd, xianbings, xianbingsxs, jiwangs, jiwangsxs, jiwangsxsmc, sfyunfujzs, yichuanxjbs, yichuanxjbsxs, jingshenbbs, jingshenbbsxs, zhizhang, zhizhangcd, zhizhangxs, jixing, jixingxs, yunfuqtjzs_rad, yunfuqtjzs, zfyichuanxjbs, zfyichuanxjbsxs, zfjingshenbbs, zfjingshenbbsxs, zfzhizhang, zfzhizhangcd, zfzhizhangxs, zfjixing, zfjixingxs, zfqtjzs_rad, zfqtjzs, gerens, xiyan, xiyanxs, yinjiu, yinjiuxs, fuyongyw, fuyongywxs, yaowugms, yaowugmsxs, jiechuydyhwz, jiechuydyhwzxs, jiechufsx, jiechufsxxs, waishangs, waishangsxs, qitagrs_rad, qitagrs, shoushus, fukeshoushus, fukeshoushusxs, qitashoushus, qitashoushusxs, chuchaonl, zhouqiomix, zhouqiomax, jingqi, jingqimax, sfyjsandbys, biyuns, biyunsxs, yunchanshi, bcrszyycqk, bcrszyycqkxs, bcrszyycqkxsmc, bchyfs, sfywtgjc, shengao, tizhong, tizhongzs, jichuszy, jichussy, xinlv, xinl, xinzangzy, xinzangzyxs, xin, xinxs, fei, feixs, qitayc, qitaycxs, fukejc, waiyin, waiyinxs, yindaoy, yindaoyxs, gongjingy, gongjingyxs, zigongjl, zigongjlxs, fujianzw, fujianzwxs, sfywpgwcl, qiajijj_one, qiajijj_two, dichiwj, chukouhj, sfywfzjc, xuehongdb, baoxibjs, xiexiaobjs, xuechangguiqt, niaodanbpj, niaotang, niaotongt, niaoqianx, niaobaixq, niaochuangguiqt, aboxuexing, rhxuexing, xuetangpj, xuetangzhi, xuetz, xtangz, xueqinggbzam, xueqinggczam, baidb, zongdanhs, jiehehs, xueqingjq, xueniaosd, yindaofmw, yindaofmwxs, yindaoqjd, shayanyyt, linqiejjc, yiganky, yixgybmkt, yixgyeky, yixgyekt, yixgyhxkt, meidujc, meidu, hiv, ygbmkydx, fmeidujc, fmeidu, didu, bchao, xindiantu, jiazhuangxiangn, tsh, ft3, tt3, ft4, tt4, atg, atpo, gongjingtlxbjc, qitajianchasx, gaoweiys, gaoweibm, gaoweixx, qtgaoweiys, zongtipg, zongtipgxs, baojianzd, chulizd, youwuzhuanzhen, zhuanzhenyuanyin, zhuanzhenjjbh, zhuanzhenjj, zhuanzhenks, yuyuerq, lurur, jianchadwbm, jianchadw, tianbiaorq, tianbiaor, fuwujgbh,
如上程式碼要編寫成如下格式:
+"fbkh, jiancharq, shoujianyz, shoujianyt, mociyj, yuchanqi, yindaofm, pougongc," +"yunci, chanci, zhiye, minzu, minzumc, wenhuacd, xianbings, xianbingsxs, jiwangs," +"jiwangsxs, jiwangsxsmc, sfyunfujzs, yichuanxjbs, yichuanxjbsxs, jingshenbbs," +"jingshenbbsxs, zhizhang, zhizhangcd, zhizhangxs, jixing, jixingxs," +"yunfuqtjzs_rad, yunfuqtjzs, zfyichuanxjbs, zfyichuanxjbsxs, zfjingshenbbs," +"zfjingshenbbsxs, zfzhizhang, zfzhizhangcd, zfzhizhangxs, zfjixing, zfjixingxs," +"zfqtjzs_rad, zfqtjzs, gerens, xiyan, xiyanxs, yinjiu, yinjiuxs, fuyongyw," +"fuyongywxs, yaowugms, yaowugmsxs, jiechuydyhwz, jiechuydyhwzxs, jiechufsx," +"jiechufsxxs, waishangs, waishangsxs, qitagrs_rad, qitagrs, shoushus," +"fukeshoushus, fukeshoushusxs, qitashoushus, qitashoushusxs, chuchaonl," +"zhouqiomix, zhouqiomax, jingqi, jingqimax, sfyjsandbys, biyuns, biyunsxs," +"yunchanshi, bcrszyycqk, bcrszyycqkxs, bcrszyycqkxsmc, bchyfs, sfywtgjc, shengao," +"tizhong, tizhongzs, jichuszy, jichussy, xinlv, xinl, xinzangzy, xinzangzyxs," +"xin, xinxs, fei, feixs, qitayc, qitaycxs, fukejc, waiyin, waiyinxs, yindaoy," +"yindaoyxs, gongjingy, gongjingyxs, zigongjl, zigongjlxs, fujianzw, fujianzwxs," +"sfywpgwcl, qiajijj_one, qiajijj_two, dichiwj, chukouhj, sfywfzjc, xuehongdb," +"baoxibjs, xiexiaobjs, xuechangguiqt, niaodanbpj, niaotang, niaotongt, niaoqianx," +"niaobaixq, niaochuangguiqt, aboxuexing, rhxuexing, xuetangpj, xuetangzhi, xuetz," +"xtangz, xueqinggbzam, xueqinggczam, baidb, zongdanhs, jiehehs, xueqingjq," +"xueniaosd, yindaofmw, yindaofmwxs, yindaoqjd, shayanyyt, linqiejjc, yiganky," +"yixgybmkt, yixgyeky, yixgyekt, yixgyhxkt, meidujc, meidu, hiv, ygbmkydx," +"fmeidujc, fmeidu, didu, bchao, xindiantu, jiazhuangxiangn, tsh, ft3, tt3, ft4," +"tt4, atg, atpo, gongjingtlxbjc, qitajianchasx, gaoweiys, gaoweibm, gaoweixx," +"qtgaoweiys, zongtipg, zongtipgxs, baojianzd, chulizd, youwuzhuanzhen," +"zhuanzhenyuanyin, zhuanzhenjjbh, zhuanzhenjj, zhuanzhenks, yuyuerq, lurur," +"jianchadwbm, jianchadw, tianbiaorq, tianbiaor, fuwujgbh,"
查詢項輸入:
^([a-z0-9].*[a-z0-9],)
替換項輸入:
+”\1”
語義分析:
^行首
()分組 代表 \1
[a-z0-9]開頭
[a-z0-9],結尾
. 點 匹配除
“\r\n”
之外的任何單個字元。要匹配包括“
\r\n”
在內的任何字元,請使用像
“[\s\S]”
的模式。
* 匹配前面的子表示式任意次。例如,
zo*
能匹配
“z”
,也能匹配
“zo”
以及“
zoo”
。
連起來的意思就是
[a-z0-9]
開頭
[a-z0-9]
,結尾中間任何單詞的長度的一行可以匹配上.
以上所述是小編給大家介紹的EditPlus中的正規表示式實戰(6),希望對大家有所幫助,如果大家有任何疑問請給我留言,小編會及時回覆大家的。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/70015105/viewspace-2872426/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- EditPlus中的正規表示式 實戰(1)
- EditPlus中的正規表示式實戰(5)
- 實戰JS正規表示式JS
- 正規表示式詳解及實戰
- 正規表示式-基礎實戰篇
- java中的正規表示式Java
- JS中的正規表示式JS
- iOS中的正規表示式iOS
- Oracle中的正規表示式Oracle
- js中的正規表示式(1)JS
- Java 中 Emoji 的正規表示式Java
- Oracle sql中的正規表示式OracleSQL
- 【正規表示式】常用的正規表示式(數字,漢字,字串,金額等的正規表示式)字串
- ECMAScript正規表示式6個最新特性
- editplus和ultraedit刪除空行(ultraedit其它常用正規表示式替換)
- 正規表示式實踐文章
- JS實現正規表示式JS
- 正規表示式在Java中的使用Java
- 淺談js中的正規表示式JS
- python中的re(正規表示式)Python
- oracle中的正規表示式(regular expression)OracleExpress
- 正規表示式中的特殊字元(轉)字元
- JavaScript中的正規表示式(2) (轉)JavaScript
- UltraEdit (UE)中的常用正規表示式
- JavaScript中的正規表示式(1) (轉)JavaScript
- 正規表示式
- 6個使用正規表示式搜尋文字中內容的工具
- Linux中基本正規表示式Linux
- JDK6筆記(3)—-正規表示式JDK筆記
- JavaScript的正規表示式JavaScript
- JS 的正規表示式JS
- 20個實用正規表示式
- JS常用正規表示式及驗證時間的正規表示式JS
- grep 命令系列:grep 中的正規表示式
- Linux之grep中的正規表示式Linux
- 正規表示式匹配html中的圖片HTML
- 正規表示式在iOS中的運用iOS
- MongoDB正規表示式在索引中的使用MongoDB索引