1. using System;
  2. using System.Collections;
  3. using System.Reflection;
  4. using System.Reflection.Emit;
  5. using System.Runtime;
  6. using System.Runtime.Serialization;
  7.  
  8. namespace System.Text.RegularExpressions
  9. {
  10. [Serializable]
  11. public class Regex : ISerializable
  12. {
  13. protected internal Hashtable capnames;
  14. protected internal Hashtable caps;
  15. protected internal int capsize;
  16. protected internal string[] capslist;
  17. protected internal RegexRunnerFactory factory;
  18. protected internal string pattern;
  19. protected internal RegexOptions roptions;
  20. [TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
  21. protected Regex();
  22. [TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
  23. public Regex(string pattern);
  24. protected Regex(SerializationInfo info, StreamingContext context);
  25. [TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
  26. public Regex(string pattern, RegexOptions options);
  27. public static int CacheSize { get; set; }
  28. public RegexOptions Options { get; }
  29. public bool RightToLeft { get; }
  30. [TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
  31. public static void CompileToAssembly(RegexCompilationInfo[] regexinfos, AssemblyName assemblyname);
  32. [TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
  33. public static void CompileToAssembly(RegexCompilationInfo[] regexinfos, AssemblyName assemblyname, CustomAttributeBuilder[] attributes);
  34. [TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
  35. public static void CompileToAssembly(RegexCompilationInfo[] regexinfos, AssemblyName assemblyname, CustomAttributeBuilder[] attributes, string resourceFile);
  36. public static string Escape(string str);
  37. public string[] GetGroupNames();
  38. public int[] GetGroupNumbers();
  39. public string GroupNameFromNumber(int i);
  40. public int GroupNumberFromName(string name);
  41. protected void InitializeReferences();
  42. public bool IsMatch(string input);
  43. public bool IsMatch(string input, int startat);
  44. public static bool IsMatch(string input, string pattern);
  45. public static bool IsMatch(string input, string pattern, RegexOptions options);
  46. public Match Match(string input);
  47. public Match Match(string input, int startat);
  48. public static Match Match(string input, string pattern);
  49. public Match Match(string input, int beginning, int length);
  50. public static Match Match(string input, string pattern, RegexOptions options);
  51. public MatchCollection Matches(string input);
  52. public MatchCollection Matches(string input, int startat);
  53. public static MatchCollection Matches(string input, string pattern);
  54. public static MatchCollection Matches(string input, string pattern, RegexOptions options);
  55. public string Replace(string input, MatchEvaluator evaluator);
  56. public string Replace(string input, string replacement);
  57. public string Replace(string input, MatchEvaluator evaluator, int count);
  58. public string Replace(string input, string replacement, int count);
  59. public static string Replace(string input, string pattern, MatchEvaluator evaluator);
  60. public static string Replace(string input, string pattern, string replacement);
  61. public string Replace(string input, MatchEvaluator evaluator, int count, int startat);
  62. public string Replace(string input, string replacement, int count, int startat);
  63. public static string Replace(string input, string pattern, MatchEvaluator evaluator, RegexOptions options);
  64. public static string Replace(string input, string pattern, string replacement, RegexOptions options);
  65. public string[] Split(string input);
  66. public string[] Split(string input, int count);
  67. public static string[] Split(string input, string pattern);
  68. public string[] Split(string input, int count, int startat);
  69. public static string[] Split(string input, string pattern, RegexOptions options);
  70. public override string ToString();
  71. public static string Unescape(string str);
  72. protected bool UseOptionC();
  73. protected bool UseOptionR();
  74. }
  75. }

asp.net正则表达式类的定义的更多相关文章

  1. 基类中定义的虚函数在派生类中重新定义时,其函数原型,包括返回类型、函数名、参数个数、参数类型及参数的先后顺序,都必须与基类中的原型完全相同 but------> 可以返回派生类对象的引用或指针

      您查询的关键词是:c++primer习题15.25 以下是该网页在北京时间 2016年07月15日 02:57:08 的快照: 如果打开速度慢,可以尝试快速版:如果想更新或删除快照,可以投诉快照. ...

  2. 【转载】ASP.NET工具类:文件夹目录Directory操作工具类

    在ASP.NET开发网站的过程中,有时候会涉及到文件夹相关操作,如判断文件夹目录是否存在.删除文件夹目录.创建文件.删除文件.复制文件夹等等.这一批有关文件目录的操作可以通过Directory类.Fi ...

  3. 如何在ASP.NET MVC为Action定义筛选器

    在ASP.NET MVC中,经常会用到[Required]等特性,在MVC中,同样可以为Action自定义筛选器,来描述控制器所遵守的规则. 首先,我们在ASP.NET MVC项目中定义一个TestC ...

  4. ASP.NET MVC扩充数据模型-定义数据模型的Metadata

    ASP.NET MVC扩充数据模型-定义数据模型的Metadata Posted on 2018-07-12 by Wang Kepai     Rate this post 无论你是使用LINQ t ...

  5. DLL导出函数和类的定义区别 __declspec(dllexport)

    DLL导出函数和类的定义区别 __declspec(dllexport) 是有区别的, 请看 : //定义头文件的使用方,是导出还是导入 #if defined(_DLL_API) #ifndef D ...

  6. asp.net正则表达式提取网页网址、标题、图片实例以及过滤所有HTML标签实例

    无论你用什么语言,正则表达式的处理方法都是非常灵活.高效的,尤其是对某些字符串的抓取.过滤方面,更显其优势. 正则表达式的写法通常比较简单,几行短代码便能轻松完成看似很复杂的事情,更值得称赞的是,它的 ...

  7. python类的定义和使用

    python中类的声明使用关键词class,可以提供一个可选的父类或者说基类,如果没有合适的基类,那就用object作为基类. 定义格式: class 类名(object): "类的说明文档 ...

  8. java类中定义接口

    今天看到一个java类中定义了接口,写个备忘录,记录一下 package com.gxf.test; public class Test_interface { public interface sh ...

  9. JavaScript 类的定义和引用 JavaScript高级培训 自定义对象

    在Java语言中,我们可以定义自己的类,并根据这些类创建对象来使用,在Javascript中,我们也可以定义自己的类,例如定义User类.Hashtable类等等.     一,概述 在Java语言中 ...

随机推荐

  1. AngularJS自定义Directive初体验

    通常我们这样定义个module并随之定义一个controller. var app = angular.module('myApp', []); app.controller('CustomersCo ...

  2. 从零开始,运行一个android例子程序

    电脑上连个eclipse都没装,怎么玩android?一穷二白的你, 下面就跟随我,从零开始,一步一步操作,运行我们的第一个android应用程序.我一直相信,学习开发,只有在调试过程中学的是最快的. ...

  3. <fmt:formatNumber>标签

    <fmt:formatNumber>标签用于格式化数字,百分比,货币. 属性 <fmt:formatNumber>标签有如下属性: 属性 描述 是否必要 默认值 value 要 ...

  4. ios开发经常使用RGB色值

    iOS中RGB经常使用的色值,同一时候可将对颜色的设置定义成宏,方便开发应用,如: // RGB颜色转换(16进制->10进制) #define UIColorFromRGB(rgbValue) ...

  5. Python 标准库一览(Python进阶学习)

    转自:http://blog.csdn.net/jurbo/article/details/52334345 写这个的起因是,还是因为在做Python challenge的时候,有的时候想解决问题,连 ...

  6. spring boot 之@JsonView 简单介绍

    @JsonView是jackson json中的一个注解,spring webmvc也支持这个注解. 这个注解的作用就是控制输入输出后的json. 假设我们有一个用户类,其中包含用户名和密码,一般情况 ...

  7. Android Activity启动流程源码全解析(1)

    前言 Activity是Android四大组件的老大,我们对它的生命周期方法调用顺序都烂熟于心了,可是这些生命周期方法到底是怎么调用的呢?在启动它的时候会用到startActivty这个方法,但是这个 ...

  8. [转]Linux常用命令大全

    From : http://www.php100.com/html/webkaifa/Linux/2009/1106/3485.html 系统信息 arch 显示机器的处理器架构(1) uname - ...

  9. 利用js实现 禁用浏览器后退 浏览器返回

    现在很多的内部系统,一些界面,都是用户手动点击退出按钮的.但是为了避免,用户误操作 点击浏览器后退,或者用鼠标手势后退什么的.容易出现误操作.        所以在有些页面上,适当的禁用浏览器的后退, ...

  10. go语言之进阶篇error接口的使用

    1.error接口的使用 示例: package main import "fmt" import "errors" func main() { //var e ...