The following code picks element from a text file according to the pattern specified.
It is first used in collecting source file names from a vc project file in order to list them in a common makefile.
-
usingSystem.IO;
-
usingSystem.Text;
-
usingSystem;
-
usingSystem.Text.RegularExpressions;
-
namespacePicker
- {
-
publicclassProgram
- {
-
publicstaticvoidMain(String[]args)
- {
-
StreamReadersr=null;
-
Stringpattern="";
-
if(args.Length>=2)
- {
-
sr=newStreamReader(args[0]);
- pattern=args[1];
- }
-
else
- {
-
Console.WriteLine("!Notenougharguments.");
-
return;
- }
- Strings=sr.ReadToEnd();
- sr.Close();
- MatchCollectionmatches=Regex.Matches(s,pattern);
-
foreach(Matchmatchinmatches)
- {
- Console.WriteLine(match.ToString());
- }
-
Console.WriteLine(":Searchingfinishedwith"+matches.Count+"matches.");
- }
- }
- }
分享到:
相关推荐
TrueAutomation Element Picker + IDE + TrueAutomation.io,其工作方式:1)安装帐户@ trueautomation.io 2)安装Chrome浏览器的Element Picker 3)安装IDE的Element Picker 4)开始更快地编写测试选择所需的元素时...
element UI el-date-picker组件样式更改 popper-class="down-time" 原码是body下的弹出器
一个基于ASP.NET+C#实现的Color Picker Web Server Control,可以作为功能强大的颜色拾取控件。
表情符号选择器元素 < emoji> 作为Web组件分发的轻量级表情符号选择器。 特征: 支持 (取决于操作系统)... npm install emoji-picker-element import 'emoji-picker-element' ; 或作为[removed]标记: < sc
主要介绍了vue element-ui el-date-picker如何限制选择时间为当天之前,文中给大家提供了代码段和截图,非常不错,具有一定的参考借鉴价值,需要的朋友可以参考下
daterangepicker是一个好用的时间范围选择插件,基于jquery,本内容是daterangepicker的中文示例
selectpicker下拉框插件
<title>Picker by ustbhuangyi , initial-scale=1,maximum-scale=1.0, minimum-scale=1.0, user-scalable=no"> <h1 class="project-name">Picker <h2 class="project-tagline">h5 picker inspired by ios ...
该资源为DevExpress 的(Image Picker)图标选择器的源代码及使用demo;由于自带的图标选择器无法在运行时调用,为此改写了自带的图标选择器,保持原有功能的同时更加完善操作(最大的亮点是可以提供自定义的图标...
ImagePicker
使用vue开发移动端横向滚动的picker组件,不依赖任何框架和库,使用原生JS编写,组件代码约300行,代码难度一般。
微信小程序picker组件,省市二级联动及其修改时进行回显,此文件只提供参考,希望给需要的朋友带来帮助。
city-picker 城市选择插件
picker-view时间选择器/年、月、日,闰年、天数、大月、小月 自定义picker-view年月日选择器 picker选择器picker-view选择器(案例)
微信小程序 - 自定义picker 封装成插件 可以自定义多级数据picker 最多四级 最少一级 自定义二级数据联动 自定义三级数据联动 自定义四级数据联动 封装成插件 全局使用
修改后的增加时间步长
uni-app picker选择器
自定义numberpicker,可以自己照着改样式
jQuery Date Range Picker