C# Regex实例

regex1

@"w*(?<Rawsize>\d*x\d*x\d*)\D*(?<RawResolution>(\d*p\d*x*){0,3})_\w*"

测试数据:

DY3_1_2_90cm_512x512x1464_0p4947x0p4947x0p625_140kv_16bit_signed.raw
BB331_S05_8453p33_FullPlug_Model_800x610x610_40p1113_For_iCore.raw

 

测试结果:

image

posted @ 2015-03-05 14:45  霍旭东  阅读(317)  评论(0编辑  收藏  举报