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)
- 正規表示式詳解及實戰
- java中的正規表示式Java
- JS中的正規表示式JS
- 談談正規表示式中的 “.”
- js中的正規表示式(1)JS
- Grep(Regex)中的正規表示式
- 【正規表示式】常用的正規表示式(數字,漢字,字串,金額等的正規表示式)字串
- ECMAScript正規表示式6個最新特性
- Linux中基本正規表示式Linux
- 正規表示式
- 正規表示式.
- 正規表示式在Java中的使用Java
- 淺談js中的正規表示式JS
- Linux之grep中的正規表示式Linux
- 6個使用正規表示式搜尋文字中內容的工具
- Linux 的正規表示式Linux
- JS常用正規表示式及驗證時間的正規表示式JS
- 20個實用正規表示式
- 正規表示式匹配html中的圖片HTML
- php –正規表示式PHP
- 【Linux】正規表示式Linux
- 【JavaScript】正規表示式JavaScript
- URL正規表示式
- 正規表示式 split()
- 初探正規表示式
- 正規表示式 test()
- 正規表示式(?!)作用
- 正規表示式 {n,}
- SQL正規表示式SQL
- 正規表示式(java)Java
- Python——正規表示式Python
- PHP正規表示式PHP
- 正規表示式概括
- javascript正規表示式JavaScript
- java正規表示式Java
- Shell正規表示式