zoukankan
html css js c++ java
在C#中使用正则表达式
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace Regular_Expression_1 { class Program { static void Main(string[] args) { Console.WriteLine(@"This will find a match for the regular expresson '[A-Z]\d'."); Console.WriteLine("Enter a test string now."); Regex myRegex = new Regex(@"[A-Z]\d", RegexOptions.IgnoreCase); string inputString = Console.ReadLine(); Match myMatch = myRegex.Match(inputString); Console.WriteLine("You entered the string '" + myMatch.ToString() + "'was found in the string you entered."); Console.ReadLine(); } } }
查看全文
相关阅读:
解题:POI 2009 TAB
解题:POI 2015 Pieczęć
解题:POI 2013 Taxis
解题:POI 2015 Kinoman
题目1012:畅通工程(并查集)
并查集深入分析
题目1186:打印日期(日期计算)
C/C++如何整行读入字符串?
四种方法解决最大连续子序列和问题
题目1011:最大连续子序列
原文地址:https://www.cnblogs.com/johnpher/p/2570611.html
最新文章
bzoj 4184 shallot 时间线建线段树+vector+线性基
bzoj 3238 [Ahoi2013]差异 后缀数组+单调栈
bzoj 2788 [Poi2012]Festival 差分约束+tarjan+floyd
最小表示法 学习笔记
poj 3415 Common Substrings 后缀数组+单调栈
bzoj 3626 [LNOI2014]LCA
BZOJ1180: [CROATIAN2009]OTOCI
BZOJ3585: mex
BZOJ3339: Rmq Problem
BZOJ2843: 极地旅行社
热门文章
BZOJ3282: Tree
BZOJ3238: [Ahoi2013]差异
BZOJ3230: 相似子串
vijosP1437简单的口令
vijosP1567子串计数
BZOJ3570: DZY Loves Physics I
解题:洛谷4135 作诗
解题:洛谷1903 数颜色/维护队列
LOJ分块⑨题汇总
解题:洛谷3396 哈希冲突
Copyright © 2011-2022 走看看