富贵资源网 Design By www.hznty.com

相关阅读:

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

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

EditPlus 正则表达式 实战(3)

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

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

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

#region隐藏字段成员 
///<summary> 
///复查编号 
///</summary> 
///[NotNullValidator] 
stringFUCHABH=null; 
///<summary> 
///妇保卡号 
///</summary> 
///[NotNullValidator] 
stringFBKH=null; 
///<summary> 
///妇女编号 
///</summary> 
stringFUNVID=null; 
///<summary> 
///尿蛋白评价 
///</summary> 
///[NotNullValidator] 
stringNIAODANBPJ=null; 
///<summary> 
/// 
///</summary> 
stringID=null; 
///<summary> 
///其他胎位 
///</summary> 
stringQITATAIWEI=null; 
///<summary> 
///其他胎先露 
///</summary> 
stringQITATAIXIANLU=null; 
///<summary> 
///血糖评价 
///</summary> 
stringXUETANGPJ=null; 
///<summary> 
///用户编号 
///</summary> 
if(ds.Tables[2].Columns.Contains("YONGHUBH")){YONGHUBH = Convert.ToInt32(ds.Tables[2].Rows[0]["YONGHUBH"]);} 
///<summary> 
///贫血评价 
///</summary> 
stringPINXUEPJ=null; 
///<summary> 
/// 
///</summary> 
///[NotNullValidator] 
stringZHUJIANZ=null; 
///<summary> 
///胎心率(次/分钟) 
///</summary> 
if(ds.Tables[2].Columns.Contains("TAIXINLV=null; 
///<summary> 
///胎方位 
///</summary> 
stringTAIWEI=null; 
///<summary> 
///血糖类型 
///</summary> 
stringXUETANGLX=null; 
///<summary> 
///B超检查 
///</summary> 
if(ds.Tables[2].Columns.Contains("BCHAJC=null; 
///<summary> 
///检查单位编号 
///</summary> 
stringJIANCHADWBH=null; 
///<summary> 
///服务机构编号 
///</summary> 
stringFUWUJGBH=null; 
///<summary> 
///录入人 
///</summary> 
stringTIANBIAOR=null; 
///<summary> 
///录入日期 
///</summary> 
DateTime"JIANCHAYZ=null; 
///<summary> 
///有无异常 
///</summary> 
///[NotNullValidator] 
stringYOUWUYC=null; 
///<summary> 
///收缩压 
///</summary> 
if(ds.Tables[2].Columns.Contains("SHOUSUOY=null; 
///<summary> 
///体重(千克) 
///</summary> 
float"TAISHULX=null; 
///<summary> 
///胎数 
///</summary> 
if(ds.Tables[2].Columns.Contains("TAISHU=null; 
///<summary> 
///胎先露 
///</summary> 
stringTAIXIANLU=null; 
///<summary> 
///衔接(胎头和骨盆是否衔接) 
///</summary> 
if(ds.Tables[2].Columns.Contains("XIANJIE=null; 
///<summary> 
///血糖(mmol/L) 
///</summary> 
float"JIANCHAYT=null; 
///<summary> 
///舒张压 
///</summary> 
if(ds.Tables[2].Columns.Contains("SHUZHANGY=null; 
///<summary> 
///高危级别 
///</summary> 
stringGAOWEIDJ=null; 
///<summary> 
///高危评分值 
///</summary> 
if(ds.Tables[2].Columns.Contains("GAOWEIPFVALUE=null; 
///<summary> 
///NST 
///</summary> 
float"htmlcode">
if(ds.Tables[2].Columns.Contains("YONGHUBH")){YONGHUBH = Convert.ToInt32(ds.Tables[2].Rows[0]["YONGHUBH"]);} 
#region隐藏字段成员 
///<summary> 
///复查编号 
///</summary> 
///[NotNullValidator] 
stringFUCHABH=null; 
///<summary> 
///妇保卡号 
///</summary> 
///[NotNullValidator] 
stringFBKH=null; 
///<summary> 
///妇女编号 
///</summary> 
stringFUNVID=null; 
///<summary> 
///尿蛋白评价 
///</summary> 
///[NotNullValidator] 
stringNIAODANBPJ=null; 
///<summary> 
/// 
///</summary> 
stringID=null; 
///<summary> 
///其他胎位 
///</summary> 
stringQITATAIWEI=null; 
///<summary> 
///其他胎先露 
///</summary> 
stringQITATAIXIANLU=null; 
///<summary> 
///血糖评价 
///</summary> 
stringXUETANGPJ=null; 
///<summary> 
///用户编号 
///</summary> 
if(ds.Tables[2].Columns.Contains("YONGHUBH")){YONGHUBH = Convert.ToInt32(ds.Tables[2].Rows[0]["YONGHUBH"]);} 
///<summary> 
///贫血评价 
///</summary> 
stringPINXUEPJ=null; 
///<summary> 
/// 
///</summary> 
///[NotNullValidator] 
stringZHUJIANZ=null; 
///<summary> 
///胎心率(次/分钟) 
///</summary> 
if(ds.Tables[2].Columns.Contains("TAIXINLV")){TAIXINLV = Convert.ToInt32(ds.Tables[2].Rows[0]["TAIXINLV"]);} 
///<summary> 
///胎方位 
///</summary> 
stringTAIWEI=null; 
///<summary> 
///血糖类型 
///</summary> 
stringXUETANGLX=null; 
///<summary> 
///B超检查 
///</summary> 
if(ds.Tables[2].Columns.Contains("BCHAJC")){BCHAJC = Convert.ToInt32(ds.Tables[2].Rows[0]["BCHAJC"]);} 
///<summary> 
///检查单位编号 
///</summary> 
stringJIANCHADWBH=null; 
///<summary> 
///服务机构编号 
///</summary> 
stringFUWUJGBH=null; 
///<summary> 
///录入人 
///</summary> 
stringTIANBIAOR=null; 
///<summary> 
///录入日期 
///</summary> 
DateTime"JIANCHAYZ")){JIANCHAYZ = Convert.ToInt32(ds.Tables[2].Rows[0]["JIANCHAYZ"]);} 
///<summary> 
///有无异常 
///</summary> 
///[NotNullValidator] 
stringYOUWUYC=null; 
///<summary> 
///收缩压 
///</summary> 
if(ds.Tables[2].Columns.Contains("SHOUSUOY")){SHOUSUOY = Convert.ToInt32(ds.Tables[2].Rows[0]["SHOUSUOY"]);} 
///<summary> 
///体重(千克) 
///</summary> 
float"TAISHULX")){TAISHULX = Convert.ToInt32(ds.Tables[2].Rows[0]["TAISHULX"]);} 
///<summary> 
///胎数 
///</summary> 
if(ds.Tables[2].Columns.Contains("TAISHU")){TAISHU = Convert.ToInt32(ds.Tables[2].Rows[0]["TAISHU"]);} 
///<summary> 
///胎先露 
///</summary> 
stringTAIXIANLU=null; 
///<summary> 
///衔接(胎头和骨盆是否衔接) 
///</summary> 
if(ds.Tables[2].Columns.Contains("XIANJIE")){XIANJIE = Convert.ToInt32(ds.Tables[2].Rows[0]["XIANJIE"]);} 
///<summary> 
///血糖(mmol/L) 
///</summary> 
float"JIANCHAYT")){JIANCHAYT = Convert.ToInt32(ds.Tables[2].Rows[0]["JIANCHAYT"]);} 
///<summary> 
///舒张压 
///</summary> 
if(ds.Tables[2].Columns.Contains("SHUZHANGY")){SHUZHANGY = Convert.ToInt32(ds.Tables[2].Rows[0]["SHUZHANGY"]);} 
///<summary> 
///高危级别 
///</summary> 
stringGAOWEIDJ=null; 
///<summary> 
///高危评分值 
///</summary> 
if(ds.Tables[2].Columns.Contains("GAOWEIPFVALUE")){GAOWEIPFVALUE = Convert.ToInt32(ds.Tables[2].Rows[0]["GAOWEIPFVALUE"]);} 
///<summary> 
///NST 
///</summary> 
float"text-align: center">EditPlus 正则表达式 实战(3)

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

然后替换

查找项输入: (\bif[\(|\[|\]|\.|A-Z|a-z|0-9]{0,}[A-Z|a-z|\(|\"])([A-Za-z0-9_]*)(=null;)

替换项输入:     \1\2")){\2 = Convert.ToInt32(ds.Tables[2].Rows[0]["\2"]);}

语义分析: 先去掉括号"()"  \bif[\(|\[|\]|\.|A-Z|a-z|0-9]{0,}[A-Z|a-z|\(|\"][A-Za-z0-9_]*=null;

匹配一个单词边界,也就是指单词和空格间的位置(\b)if;之后紧跟[\(|\[|\]|\.|A-Z|a-z|0-9] 包含 ( [ ] ) . 字母A-Z a-z 0-9 内容 ,结束也包含 [A-Z|a-z|\(|\"][A-Za-z0-9_] 符合此要求的段落

最后包含=null; 的段落

以上所述是小编给大家介绍的EditPlus 正则表达式 实战(3),希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对网站的支持!

富贵资源网 Design By www.hznty.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
富贵资源网 Design By www.hznty.com