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

#region <JIANCHARQ>1</JIANCHARQ> <YUYUERQ>1</YUYUERQ> <NIAODANB>1</NIAODANB> <XUETANGPJ>1</XUETANGPJ> <JIANCHADWBM>1</JIANCHADWBM> <JIANCHAJG>1</JIANCHAJG> <JIANCHAJGMS>1</JIANCHAJGMS> <MOCIYJ>1</MOCIYJ> <YUCHANQI>1</YUCHANQI> <SHOUJIANYZ>1</SHOUJIANYZ> <YUNCI>1</YUNCI> <CHANCI>1</CHANCI> <SHOUJIANYT>1</SHOUJIANYT> <CHUXUE>1</CHUXUE> <JUTU>1</JUTU> <FARE>1</FARE> <BINGDUGR>1</BINGDUGR> <YUNQIANFBYY>1</YUNQIANFBYY> <RENSHENGYCQK>1</RENSHENGYCQK> <SHENGAO>1</SHENGAO> <TIZHONG>1</TIZHONG> <GONGGAO>1</GONGGAO> <JICHUSZY>1</JICHUSZY> <XIN>1</XIN> <XINXS>1</XINXS> <FEI>1</FEI> <FEIXS>1</FEIXS> <JICHUSSY>1</JICHUSSY> <FUKEJC>1</FUKEJC> <YINDAOY>1</YINDAOY> <YINDAOYXS>1</YINDAOYXS> <GONGJINGY>1</GONGJINGY> <GONGJINGYXS>1</GONGJINGYXS> <SHUANGYDZG>1</SHUANGYDZG> <SHUANGYDZGXS>1</SHUANGYDZGXS> <ZIGONGJL>1</ZIGONGJL> <ZIGONGJLXS>1</ZIGONGJLXS> <FUJIANZW>1</FUJIANZW> <FUJIANZWXS>1</FUJIANZWXS> <GONGGAOFH>1</GONGGAOFH> <ZIGONGXS>1</ZIGONGXS> <QITAFKJCXS>1</QITAFKJCXS> <XUEHONGDB>1</XUEHONGDB> <NIAODANBPJ>1</NIAODANBPJ> <NIAOTANGPJ>1</NIAOTANGPJ> <JIATAIDB>1</JIATAIDB> <GPT_ALTPJ>1</GPT_ALTPJ> <ABOXUEXING>1</ABOXUEXING> <MEIDU>1</MEIDU> <MEIDUJC>1</MEIDUJC> <FMEIDUJC>1</FMEIDUJC> <FMEIDU>1</FMEIDU> <CHANQIANSC>1</CHANQIANSC> <HIV>1</HIV> <YGBMKYDX>1</YGBMKYDX> <BAIDAI>1</BAIDAI> <GONGXINGT>1</GONGXINGT> <JUXIBBD>1</JUXIBBD> <FENGZHENBD>1</FENGZHENBD> <SHIYANSJCQT>1</SHIYANSJCQT> <SHIYANSJCQTJG>1</SHIYANSJCQTJG> <GAOWEIYS>1</GAOWEIYS> <GAOWEIXX>1</GAOWEIXX> <CHULIZD>1</CHULIZD> <GAOWEIBM>1</GAOWEIBM> <YIGANKY>1</YIGANKY> <BINGGAN>1</BINGGAN> <YESUAN>1</YESUAN> <TIEDANB>1</TIEDANB> <B12>1</B12> <DANCHUNPZBZ>1</DANCHUNPZBZ> <FUZHUSZ>1</FUZHUSZ> <JIANCHAYS>1</JIANCHAYS> <RHXUEXING>1</RHXUEXING> <RPRJC>1</RPRJC> <DIDU>1</DIDU> <GAOWEIDJ>1</GAOWEIDJ> <GAOWEIPFVALUE>1</GAOWEIPFVALUE> <LURUR>1</LURUR> <JIANCHADW>1</JIANCHADW> <YINDAOFM>1</YINDAOFM> <POUGONGC>1</POUGONGC> <XIANBINGS>1</XIANBINGS> <XIANBINGSXS>1</XIANBINGSXS> <JIWANGS>1</JIWANGS> <JIWANGSXS>1</JIWANGSXS> <BCRSZYYCQK>1</BCRSZYYCQK> <BCRSZYYCQKXS>1</BCRSZYYCQKXS> <BCRSZYYCQKXSMC>1</BCRSZYYCQKXSMC> <BCHYFS>1</BCHYFS> <TIZHONGZS>1</TIZHONGZS> <XINLV>1</XINLV> <XINL>1</XINL> <XINZANGZY>1</XINZANGZY> <XINZANGZYXS>1</XINZANGZYXS> <QITAYC>1</QITAYC> <QITAYCXS>1</QITAYCXS> <WAIYIN>1</WAIYIN> <WAIYINXS>1</WAIYINXS> <YINDAOQJD>1</YINDAOQJD> <YINDAOFMW>1</YINDAOFMW> <QIAJIJJ_ONE>1</QIAJIJJ_ONE> <QIAJIJJ_TWO>1</QIAJIJJ_TWO> <DICHIWJ>1</DICHIWJ> <CHUKOUHJ>1</CHUKOUHJ> <BAOXIBJS>1</BAOXIBJS> <XIEXIAOBJS>1</XIEXIAOBJS> <XUECHANGGUIQT>1</XUECHANGGUIQT> <NIAOTANG>1</NIAOTANG> <NIAOTONGT>1</NIAOTONGT> <NIAOQIANX>1</NIAOQIANX> <NIAOBAIXQ>1</NIAOBAIXQ> <NIAOCHUANGGUIQT>1</NIAOCHUANGGUIQT> <XUEQINGGBZAM>1</XUEQINGGBZAM> <XUEQINGGCZAM>1</XUEQINGGCZAM> <BAIDB>1</BAIDB> <ZONGDANHS>1</ZONGDANHS> <JIEHEHS>1</JIEHEHS> <XUEQINGJQ>1</XUEQINGJQ> <XUENIAOSD>1</XUENIAOSD> <YINDAOFMWXS>1</YINDAOFMWXS> <SHAYANYYT>1</SHAYANYYT> <LINQIEJJC>1</LINQIEJJC> <YIGANWX>1</YIGANWX> <YIXGYBMKT>1</YIXGYBMKT> <YIXGYEKY>1</YIXGYEKY> <YIXGYEKT>1</YIXGYEKT> <YIXGYHXKT>1</YIXGYHXKT> <BCHAO>1</BCHAO> <XINDIANTU>1</XINDIANTU> <JIAZHUANGXIANGN>1</JIAZHUANGXIANGN> <TSH>1</TSH> <FT3>1</FT3> <FT4>1</FT4> <TT3>1</TT3> <TT4>1</TT4> <ATG>1</ATG> <ATPO>1</ATPO> <GONGJINGTLXBJC>1</GONGJINGTLXBJC> <ZONGTIPG>1</ZONGTIPG> <BAOJIANZD>1</BAOJIANZD> <BAOJIANZDMS>1</BAOJIANZDMS> <YOUWUZHUANZHEN>1</YOUWUZHUANZHEN> <ZHUANZHENYUANYIN>1</ZHUANZHENYUANYIN> <ZHUANZHENJJBH>1</ZHUANZHENJJBH> <ZHUANZHENJJ>1</ZHUANZHENJJ> <ZHUANZHENKS>1</ZHUANZHENKS> <ZHIYE>1</ZHIYE> <MINZU>1</MINZU> <WENHUACD>1</WENHUACD> <MINZUMC>1</MINZUMC> <SFYUNFUJZS>1</SFYUNFUJZS> <YICHUANXJBS>1</YICHUANXJBS> <YICHUANXJBSXS>1</YICHUANXJBSXS> <JINGSHENBBS>1</JINGSHENBBS> <JINGSHENBBSXS>1</JINGSHENBBSXS> <ZHIZHANG>1</ZHIZHANG> <ZHIZHANGXS>1</ZHIZHANGXS> <JIXING>1</JIXING> <JIXINGXS>1</JIXINGXS> <YUNFUQTJZS>1</YUNFUQTJZS> <ZFSFJZS>1</ZFSFJZS> <ZFYICHUANXJBS>1</ZFYICHUANXJBS> <ZFYICHUANXJBSXS>1</ZFYICHUANXJBSXS> <ZFJINGSHENBBS>1</ZFJINGSHENBBS> <ZFJINGSHENBBSXS>1</ZFJINGSHENBBSXS> <ZFZHIZHANG>1</ZFZHIZHANG> <ZFZHIZHANGXS>1</ZFZHIZHANGXS> <ZFJIXING>1</ZFJIXING> <ZFJIXINGXS>1</ZFJIXINGXS> <ZFQTJZS>1</ZFQTJZS> <GERENS>1</GERENS> <XIYAN>1</XIYAN> <XIYANXS>1</XIYANXS> <YINJIU>1</YINJIU> <YINJIUXS>1</YINJIUXS> <FUYONGYW>1</FUYONGYW> <FUYONGYWXS>1</FUYONGYWXS> <YAOWUGMS>1</YAOWUGMS> <YAOWUGMSXS>1</YAOWUGMSXS> <JIECHUYDYHWZ>1</JIECHUYDYHWZ> <JIECHUYDYHWZXS>1</JIECHUYDYHWZXS> <JIECHUFSX>1</JIECHUFSX> <JIECHUFSXXS>1</JIECHUFSXXS> <WAISHANGS>1</WAISHANGS> <WAISHANGSXS>1</WAISHANGSXS> <QITAGRS>1</QITAGRS> <SHOUSHUS>1</SHOUSHUS> <FUKESHOUSHUS>1</FUKESHOUSHUS> <FUKESHOUSHUSXS>1</FUKESHOUSHUSXS> <QITASHOUSHUS>1</QITASHOUSHUS> <QITASHOUSHUSXS>1</QITASHOUSHUSXS> <CHUCHAONL>1</CHUCHAONL> <ZHOUQIOMIX>1</ZHOUQIOMIX> <ZHOUQIOMAX>1</ZHOUQIOMAX> <JINGQI>1</JINGQI> <JINGQIMAX>1</JINGQIMAX> <BIYUNS>1</BIYUNS> <BIYUNSXS>1</BIYUNSXS> <YUNCHANSHI>1</YUNCHANSHI> <YUNFUQTJZS_RAD>1</YUNFUQTJZS_RAD> <ZFQTJZS_RAD>1</ZFQTJZS_RAD> <QITAGRS_RAD>1</QITAGRS_RAD> <JIWANGSXSMC>1</JIWANGSXSMC> <ZONGTIPGXS>1</ZONGTIPGXS> <SFYJSANDBYS>1</SFYJSANDBYS> <SFYWRSANDHY>1</SFYWRSANDHY> <SFYWTGJC>1</SFYWTGJC> <SFYWPGWCL>1</SFYWPGWCL> <SFYWFZJC>1</SFYWFZJC> <SFYWGWPDANDBJZD>1</SFYWGWPDANDBJZD> <SFYWZZANDSF>1</SFYWZZANDSF> <FBKH>1</FBKH> <FUNVID>1</FUNVID> <FUWUJGBH>1</FUWUJGBH> <ID>1</ID> <TIANBIAOR>1</TIANBIAOR> <TIANBIAORQ>1</TIANBIAORQ> <XUETANGZHI>1</XUETANGZHI> <QITAJIANCHASX>1</QITAJIANCHASX> <QTGAOWEIYS>1</QTGAOWEIYS> entity.YONGHUBH=Convert.ToInt32(YONGHUBH.ToString()); <YESUANXX>1</YESUANXX> <SFFUYONGYS>1</SFFUYONGYS> <FYKSISHISJ>1</FYKSISHISJ> <FYQINGK>1</FYQINGK> <SFTINHZFY>1</SFTINHZFY> <TINGYYY>1</TINGYYY> <ZHIZHANGCD>1</ZHIZHANGCD> <ZFZHIZHANGCD>1</ZFZHIZHANGCD> <SHIFOUWX>1</SHIFOUWX> <BAOJIANCH>1</BAOJIANCH> #endregion

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

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

然后替换

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

替换项输入:     <\2>1</\3>

语义分析:

先去去掉"()",便于简洁.(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 依次类推.

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wwfgdd.html