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

相关阅读:

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

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

EditPlus 正则表达式 实战(3)

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

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

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

#region  
entity.JIANCHARQ=JIANCHARQ; 
entity.YUYUERQ=YUYUERQ; 
entity.NIAODANB=NIAODANB; 
entity.XUETANGPJ=XUETANGPJ; 
entity.JIANCHADWBM=JIANCHADWBM; 
entity.JIANCHAJG=JIANCHAJG; 
entity.JIANCHAJGMS=JIANCHAJGMS; 
entity.MOCIYJ=MOCIYJ; 
entity.YUCHANQI=YUCHANQI; 
entity.SHOUJIANYZ=SHOUJIANYZ; 
entity.YUNCI=YUNCI; 
entity.CHANCI=CHANCI; 
entity.SHOUJIANYT=SHOUJIANYT; 
entity.CHUXUE=CHUXUE; 
entity.JUTU=JUTU; 
entity.FARE=FARE; 
entity.BINGDUGR=BINGDUGR; 
entity.YUNQIANFBYY=YUNQIANFBYY; 
entity.RENSHENGYCQK=RENSHENGYCQK; 
entity.SHENGAO=SHENGAO; 
entity.TIZHONG=TIZHONG; 
entity.GONGGAO=GONGGAO; 
entity.JICHUSZY=JICHUSZY; 
entity.XIN=XIN; 
entity.XINXS=XINXS; 
entity.FEI=FEI; 
entity.FEIXS=FEIXS; 
entity.JICHUSSY=JICHUSSY; 
entity.FUKEJC=FUKEJC; 
entity.YINDAOY=YINDAOY; 
entity.YINDAOYXS=YINDAOYXS; 
entity.GONGJINGY=GONGJINGY; 
entity.GONGJINGYXS=GONGJINGYXS; 
entity.SHUANGYDZG=SHUANGYDZG; 
entity.SHUANGYDZGXS=SHUANGYDZGXS; 
entity.ZIGONGJL=ZIGONGJL; 
entity.ZIGONGJLXS=ZIGONGJLXS; 
entity.FUJIANZW=FUJIANZW; 
entity.FUJIANZWXS=FUJIANZWXS; 
entity.GONGGAOFH=GONGGAOFH; 
entity.ZIGONGXS=ZIGONGXS; 
entity.QITAFKJCXS=QITAFKJCXS; 
entity.XUEHONGDB=XUEHONGDB; 
entity.NIAODANBPJ=NIAODANBPJ; 
entity.NIAOTANGPJ=NIAOTANGPJ; 
entity.JIATAIDB=JIATAIDB; 
entity.GPT_ALTPJ=GPT_ALTPJ; 
entity.ABOXUEXING=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 

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

#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 
 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 
 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 

EditPlus中的正则表达式 实战(2)_第1张图片

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

然后替换

查找项输入:  (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),希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对脚本之家网站的支持!

你可能感兴趣的:(EditPlus中的正则表达式 实战(2))