asp.net正则表达式类的定义
using System;
using System.Collections;
using System.Reflection;
using System.Reflection.Emit;
using System.Runtime;
using System.Runtime.Serialization; namespace System.Text.RegularExpressions
{
[Serializable]
public class Regex : ISerializable
{
protected internal Hashtable capnames;
protected internal Hashtable caps;
protected internal int capsize;
protected internal string[] capslist;
protected internal RegexRunnerFactory factory;
protected internal string pattern;
protected internal RegexOptions roptions;
[TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
protected Regex();
[TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
public Regex(string pattern);
protected Regex(SerializationInfo info, StreamingContext context);
[TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
public Regex(string pattern, RegexOptions options);
public static int CacheSize { get; set; }
public RegexOptions Options { get; }
public bool RightToLeft { get; }
[TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
public static void CompileToAssembly(RegexCompilationInfo[] regexinfos, AssemblyName assemblyname);
[TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
public static void CompileToAssembly(RegexCompilationInfo[] regexinfos, AssemblyName assemblyname, CustomAttributeBuilder[] attributes);
[TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
public static void CompileToAssembly(RegexCompilationInfo[] regexinfos, AssemblyName assemblyname, CustomAttributeBuilder[] attributes, string resourceFile);
public static string Escape(string str);
public string[] GetGroupNames();
public int[] GetGroupNumbers();
public string GroupNameFromNumber(int i);
public int GroupNumberFromName(string name);
protected void InitializeReferences();
public bool IsMatch(string input);
public bool IsMatch(string input, int startat);
public static bool IsMatch(string input, string pattern);
public static bool IsMatch(string input, string pattern, RegexOptions options);
public Match Match(string input);
public Match Match(string input, int startat);
public static Match Match(string input, string pattern);
public Match Match(string input, int beginning, int length);
public static Match Match(string input, string pattern, RegexOptions options);
public MatchCollection Matches(string input);
public MatchCollection Matches(string input, int startat);
public static MatchCollection Matches(string input, string pattern);
public static MatchCollection Matches(string input, string pattern, RegexOptions options);
public string Replace(string input, MatchEvaluator evaluator);
public string Replace(string input, string replacement);
public string Replace(string input, MatchEvaluator evaluator, int count);
public string Replace(string input, string replacement, int count);
public static string Replace(string input, string pattern, MatchEvaluator evaluator);
public static string Replace(string input, string pattern, string replacement);
public string Replace(string input, MatchEvaluator evaluator, int count, int startat);
public string Replace(string input, string replacement, int count, int startat);
public static string Replace(string input, string pattern, MatchEvaluator evaluator, RegexOptions options);
public static string Replace(string input, string pattern, string replacement, RegexOptions options);
public string[] Split(string input);
public string[] Split(string input, int count);
public static string[] Split(string input, string pattern);
public string[] Split(string input, int count, int startat);
public static string[] Split(string input, string pattern, RegexOptions options);
public override string ToString();
public static string Unescape(string str);
protected bool UseOptionC();
protected bool UseOptionR();
}
}
asp.net正则表达式类的定义的更多相关文章
- 基类中定义的虚函数在派生类中重新定义时,其函数原型,包括返回类型、函数名、参数个数、参数类型及参数的先后顺序,都必须与基类中的原型完全相同 but------> 可以返回派生类对象的引用或指针
您查询的关键词是:c++primer习题15.25 以下是该网页在北京时间 2016年07月15日 02:57:08 的快照: 如果打开速度慢,可以尝试快速版:如果想更新或删除快照,可以投诉快照. ...
- 【转载】ASP.NET工具类:文件夹目录Directory操作工具类
在ASP.NET开发网站的过程中,有时候会涉及到文件夹相关操作,如判断文件夹目录是否存在.删除文件夹目录.创建文件.删除文件.复制文件夹等等.这一批有关文件目录的操作可以通过Directory类.Fi ...
- 如何在ASP.NET MVC为Action定义筛选器
在ASP.NET MVC中,经常会用到[Required]等特性,在MVC中,同样可以为Action自定义筛选器,来描述控制器所遵守的规则. 首先,我们在ASP.NET MVC项目中定义一个TestC ...
- ASP.NET MVC扩充数据模型-定义数据模型的Metadata
ASP.NET MVC扩充数据模型-定义数据模型的Metadata Posted on 2018-07-12 by Wang Kepai Rate this post 无论你是使用LINQ t ...
- DLL导出函数和类的定义区别 __declspec(dllexport)
DLL导出函数和类的定义区别 __declspec(dllexport) 是有区别的, 请看 : //定义头文件的使用方,是导出还是导入 #if defined(_DLL_API) #ifndef D ...
- asp.net正则表达式提取网页网址、标题、图片实例以及过滤所有HTML标签实例
无论你用什么语言,正则表达式的处理方法都是非常灵活.高效的,尤其是对某些字符串的抓取.过滤方面,更显其优势. 正则表达式的写法通常比较简单,几行短代码便能轻松完成看似很复杂的事情,更值得称赞的是,它的 ...
- python类的定义和使用
python中类的声明使用关键词class,可以提供一个可选的父类或者说基类,如果没有合适的基类,那就用object作为基类. 定义格式: class 类名(object): "类的说明文档 ...
- java类中定义接口
今天看到一个java类中定义了接口,写个备忘录,记录一下 package com.gxf.test; public class Test_interface { public interface sh ...
- JavaScript 类的定义和引用 JavaScript高级培训 自定义对象
在Java语言中,我们可以定义自己的类,并根据这些类创建对象来使用,在Javascript中,我们也可以定义自己的类,例如定义User类.Hashtable类等等. 一,概述 在Java语言中 ...
随机推荐
- AngularJS报错:[$compile:tpload]
页面中有: <div ng-view></div> 这里会根据不同的路由设置选择不同模版下的内容. 如果把AngularJS网站项目放在包含中文字的目录中,会报以上的错. 解决 ...
- utf-8与utf-8(无BOM)的区别
BOM——Byte Order Mark,就是字节序标记 在UCS 编码中有一个叫做"ZERO WIDTH NO-BREAK SPACE"的字符,它的编码是FEFF.而FFFE ...
- 转:iOS 越狱的原理是什么
本文的主角是一个苦逼的程序员,最近打算开始研究越狱破解,因为打算做类似一类越狱插件的东西给自己使用.所以就了解了一下越狱破解的一个原理过程. 每个手机都会有手机系统,苹果也不例外.每个手机系 ...
- C#编程(三十五)----------foreach和yield
枚举 在foreach语句中使用枚举,可以迭代集合中的元素,且无需知道集合中的元素个数. 数组或集合实现带GetEumerator()方法的IEumerable接口.GetEumerator()方法返 ...
- RabbitMQ:基本命令
rabbitmq的安装.启动和停止 rabbitmq-service.bat install rabbitmq-service.bat start rabbitmq-service.bat stop ...
- centos7安装debuginfo
转自:https://www.72zk.com/show/blog/20 查看内核版本,查找对应的内核rpm文件 [root@localhost ~]#uname -rsp Linux 3.10.0- ...
- 解读SSD中的Default box(Prior Box)
1:SSD更具体的框架如下: 2: Prior Box 缩进在SSD中引入了Prior Box,实际上与anchor非常类似,就是一些目标的预选框,后续通过softmax分类+bounding box ...
- [转]MySQL主从复制(Master-Slave)与读写分离(MySQL-Proxy)实践
转自:http://heylinux.com/archives/1004.html Mysql作为目前世界上使用最广泛的免费数据库,相信所有从事系统运维的工程师都一定接触过.但在实际的生产环境中,由单 ...
- 洛谷 P3386 【模板】二分图匹配
题目背景 二分图 题目描述 给定一个二分图,结点个数分别为n,m,边数为e,求二分图最大匹配数 输入输出格式 输入格式: 第一行,n,m,e 第二至e+1行,每行两个正整数u,v,表示u,v有一条连边 ...
- 【FTP资源】发现一个ArcGIS相关的FTP。
用谷歌 在搜索 ArcGISEngineRT的时候,发现了一个站点: ftp://ftp.geobc.gov.bc.ca/pub/outgoing/GeoBC_software_distributio ...