EditPlus中的正则表达式 实战(2)

前端之家收集整理的这篇文章主要介绍了EditPlus中的正则表达式 实战(2)前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

相关阅读:

BoxUEXING=ABoxUEXING; entity.MEIDU=MEIDU; entity.MEIDUJC=MEIDUJC; entity.FMEIDUJC=FMEIDUJC; entity.FMEIDU=FMEIDU; entity.CHANQIANSC=CHANQIANSC; entity.HIV=HIV; entity.YGBMKYDX=YGBMKYDX; entity.BAIDAI=BAIDAI; entity.GONGXINGT=GONGXINGT; entity.JUXIBBD=JUXIBBD; entity.FENGZHENBD=FENGZHENBD; entity.SHIYANSJCQT=SHIYANSJCQT; entity.SHIYANSJCQTJG=SHIYANSJCQTJG; entity.GAOWEIYS=GAOWEIYS; entity.GAOWEIXX=GAOWEIXX; entity.CHULIZD=CHULIZD; entity.GAOWEIBM=GAOWEIBM; entity.YIGANKY=YIGANKY; entity.BINGGAN=BINGGAN; entity.YESUAN=YESUAN; entity.TIEDANB=TIEDANB; entity.B12=B12; entity.DANCHUNPZBZ=DANCHUNPZBZ; entity.FUZHUSZ=FUZHUSZ; entity.JIANCHAYS=JIANCHAYS; entity.RHXUEXING=RHXUEXING; entity.RPRJC=RPRJC; entity.DIDU=DIDU; entity.GAOWEIDJ=GAOWEIDJ; entity.GAOWEIPFVALUE=GAOWEIPFVALUE; entity.LURUR=LURUR; entity.JIANCHADW=JIANCHADW; entity.YINDAOFM=YINDAOFM; entity.POUGONGC=POUGONGC; entity.XIANBINGS=XIANBINGS; entity.XIANBINGSXS=XIANBINGSXS; entity.JIWANGS=JIWANGS; entity.JIWANGSXS=JIWANGSXS; entity.BCRSZYYCQK=BCRSZYYCQK; entity.BCRSZYYCQKXS=BCRSZYYCQKXS; entity.BCRSZYYCQKXSMC=BCRSZYYCQKXSMC; entity.BCHYFS=BCHYFS; entity.TIZHONGZS=TIZHONGZS; entity.XINLV=XINLV; entity.XINL=XINL; entity.XINZANGZY=XINZANGZY; entity.XINZANGZYXS=XINZANGZYXS; entity.QITAYC=QITAYC; entity.QITAYCXS=QITAYCXS; entity.WAIYIN=WAIYIN; entity.WAIYINXS=WAIYINXS; entity.YINDAOQJD=YINDAOQJD; entity.YINDAOFMW=YINDAOFMW; entity.QIAJIJJ_ONE=QIAJIJJ_ONE; entity.QIAJIJJ_TWO=QIAJIJJ_TWO; entity.DICHIWJ=DICHIWJ; entity.CHUKOUHJ=CHUKOUHJ; entity.BAOXIBJS=BAOXIBJS; entity.XIEXIAOBJS=XIEXIAOBJS; entity.XUECHANGGUIQT=XUECHANGGUIQT; entity.NIAOTANG=NIAOTANG; entity.NIAOTONGT=NIAOTONGT; entity.NIAOQIANX=NIAOQIANX; entity.NIAOBAIXQ=NIAOBAIXQ; entity.NIAOCHUANGGUIQT=NIAOCHUANGGUIQT; entity.XUEQINGGBZAM=XUEQINGGBZAM; entity.XUEQINGGCZAM=XUEQINGGCZAM; entity.BAIDB=BAIDB; entity.ZONGDANHS=ZONGDANHS; entity.JIEHEHS=JIEHEHS; entity.XUEQINGJQ=XUEQINGJQ; entity.XUENIAOSD=XUENIAOSD; entity.YINDAOFMWXS=YINDAOFMWXS; entity.SHAYANYYT=SHAYANYYT; entity.LINQIEJJC=LINQIEJJC; entity.YIGANWX=YIGANWX; entity.YIXGYBMKT=YIXGYBMKT; entity.YIXGYEKY=YIXGYEKY; entity.YIXGYEKT=YIXGYEKT; entity.YIXGYHXKT=YIXGYHXKT; entity.BCHAO=BCHAO; entity.XINDIANTU=XINDIANTU; entity.JIAZHUANGXIANGN=JIAZHUANGXIANGN; entity.TSH=TSH; entity.FT3=FT3; entity.FT4=FT4; entity.TT3=TT3; entity.TT4=TT4; entity.ATG=ATG; entity.ATPO=ATPO; entity.GONGJINGTLXBJC=GONGJINGTLXBJC; entity.ZONGTIPG=ZONGTIPG; entity.BAOJIANZD=BAOJIANZD; entity.BAOJIANZDMS=BAOJIANZDMS; entity.YOUWUZHUANZHEN=YOUWUZHUANZHEN; entity.ZHUANZHENYUANYIN=ZHUANZHENYUANYIN; entity.ZHUANZHENJJBH=ZHUANZHENJJBH; entity.ZHUANZHENJJ=ZHUANZHENJJ; entity.ZHUANZHENKS=ZHUANZHENKS; entity.ZHIYE=ZHIYE; entity.MINZU=MINZU; entity.WENHUACD=WENHUACD; entity.MINZUMC=MINZUMC; entity.SFYUNFUJZS=SFYUNFUJZS; entity.YICHUANXJBS=YICHUANXJBS; entity.YICHUANXJBSXS=YICHUANXJBSXS; entity.JINGSHENBBS=JINGSHENBBS; entity.JINGSHENBBSXS=JINGSHENBBSXS; entity.ZHIZHANG=ZHIZHANG; entity.ZHIZHANGXS=ZHIZHANGXS; entity.JIXING=JIXING; entity.JIXINGXS=JIXINGXS; entity.YUNFUQTJZS=YUNFUQTJZS; entity.ZFSFJZS=ZFSFJZS; entity.ZFYICHUANXJBS=ZFYICHUANXJBS; entity.ZFYICHUANXJBSXS=ZFYICHUANXJBSXS; entity.ZFJINGSHENBBS=ZFJINGSHENBBS; entity.ZFJINGSHENBBSXS=ZFJINGSHENBBSXS; entity.ZFZHIZHANG=ZFZHIZHANG; entity.ZFZHIZHANGXS=ZFZHIZHANGXS; entity.ZFJIXING=ZFJIXING; entity.ZFJIXINGXS=ZFJIXINGXS; entity.ZFQTJZS=ZFQTJZS; entity.GERENS=GERENS; entity.XIYAN=XIYAN; entity.XIYANXS=XIYANXS; entity.YINJIU=YINJIU; entity.YINJIUXS=YINJIUXS; entity.FUYONGYW=FUYONGYW; entity.FUYONGYWXS=FUYONGYWXS; entity.YAOWUGMS=YAOWUGMS; entity.YAOWUGMSXS=YAOWUGMSXS; entity.JIECHUYDYHWZ=JIECHUYDYHWZ; entity.JIECHUYDYHWZXS=JIECHUYDYHWZXS; entity.JIECHUFSX=JIECHUFSX; entity.JIECHUFSXXS=JIECHUFSXXS; entity.WAISHANGS=WAISHANGS; entity.WAISHANGSXS=WAISHANGSXS; entity.QITAGRS=QITAGRS; entity.SHOUSHUS=SHOUSHUS; entity.FUKESHOUSHUS=FUKESHOUSHUS; entity.FUKESHOUSHUSXS=FUKESHOUSHUSXS; entity.QITASHOUSHUS=QITASHOUSHUS; entity.QITASHOUSHUSXS=QITASHOUSHUSXS; entity.CHUCHAONL=CHUCHAONL; entity.ZHOUQIOMIX=ZHOUQIOMIX; entity.ZHOUQIOMAX=ZHOUQIOMAX; entity.JINGQI=JINGQI; entity.JINGQIMAX=JINGQIMAX; entity.BIYUNS=BIYUNS; entity.BIYUNSXS=BIYUNSXS; entity.YUNCHANSHI=YUNCHANSHI; entity.YUNFUQTJZS_RAD=YUNFUQTJZS_RAD; entity.ZFQTJZS_RAD=ZFQTJZS_RAD; entity.QITAGRS_RAD=QITAGRS_RAD; entity.JIWANGSXSMC=JIWANGSXSMC; entity.ZONGTIPGXS=ZONGTIPGXS; entity.SFYJSANDBYS=SFYJSANDBYS; entity.SFYWRSANDHY=SFYWRSANDHY; entity.SFYWTGJC=SFYWTGJC; entity.SFYWPGWCL=SFYWPGWCL; entity.SFYWFZJC=SFYWFZJC; entity.SFYWGWPDANDBJZD=SFYWGWPDANDBJZD; entity.SFYWZZANDSF=SFYWZZANDSF; entity.FBKH=FBKH; entity.FUNVID=FUNVID; entity.FUWUJGBH=FUWUJGBH; entity.ID=ID; entity.TIANBIAOR=TIANBIAOR; entity.TIANBIAORQ=TIANBIAORQ; entity.XUETANGZHI=XUETANGZHI; entity.QITAJIANCHASX=QITAJIANCHASX; entity.QTGAOWEIYS=QTGAOWEIYS; entity.YONGHUBH=Convert.ToInt32(YONGHUBH.ToString()); entity.YESUANXX=YESUANXX; entity.SFFUYONGYS=SFFUYONGYS; entity.FYKSISHISJ=FYKSISHISJ; entity.FYQINGK=FYQINGK; entity.SFTINHZFY=SFTINHZFY; entity.TINGYYY=TINGYYY; entity.ZHIZHANGCD=ZHIZHANGCD; entity.ZFZHIZHANGCD=ZFZHIZHANGCD; entity.SHIFOUWX=SHIFOUWX; entity.BAOJIANCH =BAOJIANCH; #endregion

如上代码要编写成如下格式:

<div class="jb51code">
<pre class="brush:js;">

region

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1@H_403_215@ 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1@H_758_301@ 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 @H_403_362@1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 @H_403_396@1 1 1 1@H_114_403@ @H_672_404@1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 entity.YONGHUBH=Convert.ToInt32(YONGHUBH.ToString()); 1 1 1 1 1 1 1 1 1 1 #endregion

先手动整理下格式去掉空格

然后替换

查找项输入: (entity.)([A-Z0-9_]*[A-Z0-9_])=([A-Z0-9_]*[A-Z0-9_]);

替换项输入: <\2>1

语义分析:

先去去掉"()",便于简洁.(entity.)([A-Z0-9_]*[A-Z0-9_])=([A-Z0-9_]*[A-Z0-9_]); 等同于 entity.[A-Z0-9_]*[A-Z0-9_]=[A-Z0-9_]*[A-Z0-9_];

"()" 意思就是分组 一个"()"代表一个分组 表达式为 \1 ;下一个分组为\2 依次类推.

查找entity.开头然后"."后面是[字母数字下划线]组成的[长度不明]并[字母数字下划线]结尾的;并且后面跟上"=",符合[字母数字下划线]组成的[长度不明]并[字母数字下划线]结尾的.

最后还带有";"结束的段落

以上所述是小编给大家介绍的EditPlus中的正则表达式 实战(2)。编程之家 jb51.cc 收集整理的教程希望能对你有所帮助,如果觉得编程之家不错,可分享给好友!感谢支持

猜你在找的JavaScript相关文章