109 instantiations of Regex
PresentationBuildTasks (1)
BuildTasks\Microsoft\Build\Tasks\Windows\UidManager.cs (1)
1342private static Regex EscapedXmlEntities = new Regex("(<|>|\"|'|&)", RegexOptions.CultureInvariant | RegexOptions.Compiled);
PresentationFramework (2)
src\Framework\MS\Internal\AppModel\DeploymentExceptionMapper.cs (1)
83Regex regex = new Regex(@".NET Framework (v\.?)?(?<version>\d{1,2}(\.\d{1,2})?)",
src\Framework\MS\Internal\Globalization\BamlResourceContent.cs (1)
100private static Regex UnescapePattern = new Regex("(\\\\.?|&lt;|&gt;|&quot;|&apos;|&amp;)", RegexOptions.CultureInvariant | RegexOptions.Compiled);
System (13)
compmod\microsoft\csharp\csharpcodeprovider.cs (2)
526new Regex(@"(^(.*)(\(([0-9]+),([0-9]+)\)): )(error|warning) ([A-Z]+[0-9]+) ?: (.*)"); 528new Regex(@"(error|warning) ([A-Z]+[0-9]+) ?: (.*)");
compmod\microsoft\visualbasic\VBCodeProvider.cs (1)
515outputReg = new Regex(@"^([^(]*)\(?([0-9]*)\)? ?:? ?(error|warning) ([A-Z]+[0-9]+) ?: ((.|\n)*)");
net\System\Net\_WebProxyDataBuilder.cs (1)
166Regex("^(?<scheme>.*://)?(?<host>[^:]*)(?<port>:[0-9]{1,5})?$",
net\System\Net\WebPermission.cs (2)
219_AsRegex = new Regex(_AsString + "[/]?", RegexOptions.IgnoreCase | RegexOptions.Compiled | RegexOptions.Singleline | RegexOptions.CultureInvariant); 253s_MatchAllRegex = new Regex(".*");
net\System\Net\webproxy.cs (1)
312regExBypassList[i] = new Regex((string)bypassList[i], RegexOptions.IgnoreCase | RegexOptions.CultureInvariant);
regex\system\text\regularexpressions\Regex.cs (6)
749return new Regex(pattern, options, matchTimeout, true).IsMatch(input); 823return new Regex(pattern, options, matchTimeout, true).Match(input); 909return new Regex(pattern, options, matchTimeout, true).Matches(input); 983return new Regex(pattern, options, matchTimeout, true).Replace(input, replacement); 1083return new Regex(pattern, options, matchTimeout, true).Replace(input, evaluator); 1171return new Regex(pattern, options, matchTimeout, true).Split(input);
System.Activities (4)
Microsoft\VisualBasic\Activities\XamlIntegration\VisualBasicExpressionConverter.cs (1)
25static readonly Regex assemblyQualifiedNamespaceRegex = new Regex(
System\Activities\Expressions\Literal.cs (1)
23static Regex ExpressionEscapeRegex = new Regex(@"^(%*\[)");
System\Activities\WorkflowIdentity.cs (1)
20static Regex identityString = new Regex(
System\Activities\XamlIntegration\ActivityWithResultConverter.cs (1)
83static Regex LiteralEscapeRegex = new Regex(@"^(%+\[)");
System.Activities.Presentation (1)
Microsoft.Tools.Common\Microsoft\Activities\Presentation\TypeNameHelper.cs (1)
44Regex regex = new Regex("`[0-9]+");
System.ComponentModel.DataAnnotations (8)
DataAnnotations\EmailAddressAttribute.cs (2)
63return new Regex(pattern, options, matchTimeout); 71return new Regex(pattern, options);
DataAnnotations\PhoneAttribute.cs (2)
78return new Regex(pattern, options, matchTimeout); 86return new Regex(pattern, options);
DataAnnotations\RegularExpressionAttribute.cs (2)
110? new Regex(Pattern) 111: Regex = new Regex(Pattern, default(RegexOptions), TimeSpan.FromMilliseconds((double)MatchTimeoutInMilliseconds));
DataAnnotations\UrlAttribute.cs (2)
56return new Regex(pattern, options, matchTimeout); 64return new Regex(pattern, options);
System.Configuration (1)
System\Configuration\RegexStringValidator.cs (1)
32_regex = new Regex(regex, RegexOptions.Compiled);
System.Data (7)
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\TypeNameHelper.cs (1)
44Regex regex = new Regex("`[0-9]+");
fx\src\data\System\Data\Common\DBCommandBuilder.cs (1)
51_parameterNameParser = new Regex(_dbCommandBuilder.ParameterNamePattern, RegexOptions.ExplicitCapture | RegexOptions.Singleline);
fx\src\data\System\Data\Common\DbConnectionOptions.cs (4)
88private static readonly Regex ConnectionStringValidKeyRegex = new Regex(ConnectionStringValidKeyPattern, RegexOptions.Compiled); 89private static readonly Regex ConnectionStringValidValueRegex = new Regex(ConnectionStringValidValuePattern, RegexOptions.Compiled); 91private static readonly Regex ConnectionStringQuoteValueRegex = new Regex(ConnectionStringQuoteValuePattern, RegexOptions.Compiled); 92private static readonly Regex ConnectionStringQuoteOdbcValueRegex = new Regex(ConnectionStringQuoteOdbcValuePattern, RegexOptions.ExplicitCapture | RegexOptions.Compiled);
fx\src\data\System\Data\SqlClient\SqlCommandSet.cs (1)
24private static readonly Regex SqlIdentifierParser = new Regex(SqlIdentifierPattern, RegexOptions.ExplicitCapture|RegexOptions.Singleline);
System.Data.Entity (9)
System\Data\Common\CommandTrees\DbCommandTree.cs (1)
202private static readonly Regex _paramNameRegex = new Regex("^([A-Za-z])([A-Za-z0-9_])*$");
System\Data\Common\EntitySql\CqlLexerHelpers.cs (3)
792_reDateTimeValue = new Regex(_datetimeValueRegularExpression, RegexOptions.Singleline | RegexOptions.CultureInvariant); 808_reTimeValue = new Regex(_timeValueRegularExpression, RegexOptions.Singleline | RegexOptions.CultureInvariant); 824_reDateTimeOffsetValue = new Regex(_datetimeOffsetValueRegularExpression, RegexOptions.Singleline | RegexOptions.CultureInvariant);
System\Data\EntityModel\SchemaObjectModel\Function.cs (1)
48private static System.Text.RegularExpressions.Regex s_typeParser = new System.Text.RegularExpressions.Regex(@"^(?<modifier>((Collection)|(Ref)))\s*\(\s*(?<typeName>\S*)\s*\)$", System.Text.RegularExpressions.RegexOptions.Compiled);
System\Data\EntityModel\SchemaObjectModel\ScalarType.cs (2)
31private readonly static System.Text.RegularExpressions.Regex _BinaryValueValidator = new System.Text.RegularExpressions.Regex("^0[xX][0-9a-fA-F]+$", System.Text.RegularExpressions.RegexOptions.Compiled); 32private readonly static System.Text.RegularExpressions.Regex _GuidValueValidator = new System.Text.RegularExpressions.Regex("[0-9a-fA-F]{8,8}(-[0-9a-fA-F]{4,4}){3,3}-[0-9a-fA-F]{12,12}", System.Text.RegularExpressions.RegexOptions.Compiled);
System\Data\EntityModel\SchemaObjectModel\Utils.cs (1)
41private static Regex UndottedNameValidator = new Regex(@"^"+NameExp+@"$",RegexOptions.Singleline | RegexOptions.Compiled );
System\Data\Mapping\ViewGeneration\CqlGeneration\CqlWriter.cs (1)
24private static readonly Regex s_wordIdentifierRegex = new Regex(@"^[_A-Za-z]\w*$", RegexOptions.ECMAScript | RegexOptions.Compiled);
System.Data.Entity.Design (1)
System\Data\EntityModel\Emitters\CommentEmitter.cs (1)
34private static readonly Regex LeadingBlanks = new Regex(@"^(?<LeadingBlanks>\s{1,})\S", RegexOptions.Singleline | RegexOptions.Compiled);
System.Data.Services (1)
System\Data\Services\Serializers\JsonReader.cs (1)
32private static readonly Regex DateTimeFormat = new Regex(@"^/Date\((?<ticks>-?[0-9]+)\)/", RegexOptions.Compiled);
System.Data.Services.Design (1)
System\Data\EntityModel\Emitters\CommentEmitter.cs (1)
27private static readonly Regex LeadingBlanks = new Regex(@"^(?<LeadingBlanks>\s{1,})\S", RegexOptions.Singleline | RegexOptions.Compiled);
System.Data.SqlXml (3)
System\Xml\Xsl\QIL\QilXmlReader.cs (2)
28private static Regex lineInfoRegex = new Regex(@"\[(\d+),(\d+) -- (\d+),(\d+)\]"); 29private static Regex typeInfoRegex = new Regex(@"(\w+);([\w|\|]+);(\w+)");
System\Xml\Xsl\Xslt\Scripts.cs (1)
339Regex alphaNumeric = new Regex("^[0-9a-zA-Z]+$");
System.ServiceModel (4)
System\ServiceModel\Administration\WbemProvider.cs (4)
775static Regex nsRegEx = new Regex("^(?<namespace>[^\"]*?:)(?<path>.*)"); 776static Regex classRegEx = new Regex("^(?<className>.*?)\\.(?<keys>.*)"); 777static Regex keysRegEx = new Regex("(?<key>.*?)=((?<ival>[\\d]+)|\"(?<sval>.*?)\"),?"); 819static Regex regEx = new Regex("\\bfrom\\b\\s+(?<className>\\w+)", RegexOptions.IgnoreCase);
System.Web (25)
Configuration\CapabilitiesPattern.cs (4)
34internal static readonly Regex refPat = new Regex("\\G\\$(?:(?<name>\\d+)|\\{(?<name>\\w+)\\})"); 35internal static readonly Regex varPat = new Regex("\\G\\%\\{(?<name>\\w+)\\}"); 36internal static readonly Regex textPat = new Regex("\\G[^$%\\\\]*(?:\\.[^$%\\\\]*)*"); 37internal static readonly Regex errorPat = new Regex(".{0,8}");
Configuration\CheckPair.cs (2)
29Regex regex = new Regex(match); 36Regex regex = new Regex(match);
Configuration\DelayedRegex.cs (1)
44_regex = new Regex(regstring);
Configuration\HttpCapabilitiesSectionHandler.cs (3)
380static Regex lineRegex = new Regex 393static Regex wsRegex = new Regex("\\G\\s*"); 394static Regex errRegex = new Regex("\\G\\S {0,8}");
Security\ADMembershipProvider.cs (1)
399Regex regex = new Regex( passwordStrengthRegularExpression );
Security\SQLMembershipProvider.cs (1)
138Regex regex = new Regex( _PasswordStrengthRegularExpression );
State\OutOfProcStateClientManager.cs (1)
184private static Regex _ipv6ConnectionStringFormat = new Regex(@"^\[(?<ipv6Address>.*)\]:(?<port>\d*)$");
UI\CssStyleCollection.cs (1)
29private static readonly Regex _styleAttribRegex = new Regex(
Util\RegexUtil.cs (2)
38return new Regex(pattern, option, TimeSpan.FromMilliseconds((double)timeout)); 40return new Regex(pattern, option);
Util\Wildcard.cs (9)
49protected static Regex metaRegex = new Regex("[\\+\\{\\\\\\[\\|\\(\\)\\.\\^\\$]"); 50protected static Regex questRegex = new Regex("\\?"); 51protected static Regex starRegex = new Regex("\\*"); 52protected static Regex commaRegex = new Regex(","); 53protected static Regex slashRegex = new Regex("(?=/)"); 54protected static Regex backslashRegex = new Regex("(?=[\\\\:])"); 116return new Regex("\\A" + pattern + "\\z", options); 256return new Regex("\\A" + pattern + "\\z", options); 283return new Regex("(?:\\A|(?<=/))" + pattern + "\\z", options);
System.Web.DataVisualization (1)
Common\General\ImageMap.cs (1)
499_mapAttributesRegex = new Regex(@"\s?(?<name>(\w+))\s?=\s?""(?<value>[^""]+)""\s?", RegexOptions.IgnoreCase | RegexOptions.Singleline | RegexOptions.IgnorePatternWhitespace | RegexOptions.Compiled);
System.Web.DynamicData (1)
DynamicData\ModelProviders\DLinqColumnProvider.cs (1)
13private static Regex s_varCharRegEx = new Regex(@"N?(?:Var)?Char\(([0-9]+)\)", RegexOptions.IgnoreCase); // accepts char, nchar, varchar, and nvarchar
System.Web.Extensions (4)
UI\ScriptRegistrationManager.cs (1)
24private static Regex ScriptTagRegex = new Regex(
UI\ScriptResourceAttribute.cs (1)
32private static readonly Regex _webResourceRegEx = new Regex(
UI\WebControls\QueryableDataSourceHelper.cs (2)
24private static readonly Regex IdentifierRegex = new Regex(IdentifierPattern + @"\s*$"); 26private static readonly Regex AutoGenerateOrderByRegex = new Regex(IdentifierPattern +
System.Web.Mobile (4)
Mobile\MobileErrorInfo.cs (3)
298_searchExpressions[0] = new Regex( 308_searchExpressions[1] = new Regex( 317_searchExpressions[2] = new Regex(
UI\MobileControls\Design\Util\SimpleParser.cs (1)
86_unclosedTagRegex = new Regex(_pattern, _options);
System.Web.Services (7)
System\Web\Services\Discovery\LinkGrep.cs (6)
153private readonly static Regex tagRegex = new Regex 173private readonly static Regex doctypeDirectiveRegex = new Regex 179private readonly static Regex endtagRegex = new Regex 186private readonly static Regex commentRegex = new Regex 194private readonly static Regex whitespaceRegex = new Regex 200private readonly static Regex textRegex = new Regex
System\Web\Services\Protocols\PatternMatcher.cs (1)
187member.regex = new Regex(attr.Pattern, RegexOptions.Singleline | (attr.IgnoreCase ? RegexOptions.IgnoreCase | RegexOptions.CultureInvariant : 0));
System.Windows.Forms (1)
winforms\Managed\System\WinForms\ToolStripSettings.cs (1)
250Regex r = new Regex("(\\S+)");
System.Windows.Forms.DataVisualization (1)
Common\General\ImageMap.cs (1)
499_mapAttributesRegex = new Regex(@"\s?(?<name>(\w+))\s?=\s?""(?<value>[^""]+)""\s?", RegexOptions.IgnoreCase | RegexOptions.Singleline | RegexOptions.IgnorePatternWhitespace | RegexOptions.Compiled);
System.Workflow.ComponentModel (2)
AuthoringOM\Compiler\Configuration.cs (1)
134this.regex = new Regex(MakeRegex(string.Format(CultureInfo.InvariantCulture, "{0}.{1}, {2}", new object[] { this.namespaceName, this.typeName, this.assemblyName })), RegexOptions.Compiled);
AuthoringOM\Compiler\XomlCompilerParameters.cs (1)
538Regex options = new Regex(@"\s*[/-]rootnamespace[:=]\s*(?<RootNamespace>[^\s]*)");
System.Xml (7)
System\Xml\Schema\FacetChecker.cs (2)
304derivedRestriction.Patterns.Add(new Regex(Preprocess(regStr.ToString()), RegexOptions.None)); 1110Regex langRegex = new Regex("^([a-zA-Z]{1,8})(-[a-zA-Z0-9]{1,8})*$", RegexOptions.None);
System\Xml\Serialization\SourceInfo.cs (2)
20static Regex regex = new Regex("([(][(](?<t>[^)]+)[)])?(?<a>[^[]+)[[](?<ia>.+)[]][)]?"); 22static Regex regex2 = new Regex("[(][(](?<cast>[^)]+)[)](?<arg>[^)]+)[)]");
System\Xml\Serialization\XmlSerializationILGen.cs (1)
70regex = new Regex(pattern);
System\Xml\XmlConvert.cs (2)
98c_DecodeCharPattern = new Regex("_[Xx]([0-9a-fA-F]{4}|[0-9a-fA-F]{8})_"); 193c_EncodeCharPattern = new Regex("(?<=_)[Xx]([0-9a-fA-F]{4}|[0-9a-fA-F]{8})_");
243 references to Regex
PresentationBuildTasks (1)
BuildTasks\Microsoft\Build\Tasks\Windows\UidManager.cs (1)
1342private static Regex EscapedXmlEntities = new Regex("(<|>|\"|'|&)", RegexOptions.CultureInvariant | RegexOptions.Compiled);
PresentationFramework (3)
src\Framework\MS\Internal\AppModel\DeploymentExceptionMapper.cs (1)
83Regex regex = new Regex(@".NET Framework (v\.?)?(?<version>\d{1,2}(\.\d{1,2})?)",
src\Framework\MS\Internal\Globalization\BamlResourceContent.cs (1)
100private static Regex UnescapePattern = new Regex("(\\\\.?|&lt;|&gt;|&quot;|&apos;|&amp;)", RegexOptions.CultureInvariant | RegexOptions.Compiled);
src\Framework\System\Windows\Documents\WinRTSpellerInterop.cs (1)
654string[] matches = Regex.Split(line.Trim(), regexPattern, regexOptions);
System (48)
compmod\microsoft\csharp\csharpcodeprovider.cs (2)
143private static volatile Regex outputRegWithFileAndLine; 144private static volatile Regex outputRegSimple;
compmod\microsoft\visualbasic\VBCodeProvider.cs (2)
144private static volatile Regex outputReg; 2895string[] lines = Regex.Split(fileStr, @"\r\n");
compmod\system\componentmodel\design\DesignerVerb.cs (2)
35Properties["Text"] = text == null ? null : Regex.Replace(text, @"\(\&.\)", ""); // VSWHIDBEY 485835 46Properties["Text"] = text == null ? null : Regex.Replace(text, @"\(\&.\)", "");// VSWHIDBEY 485835
net\System\Net\_WebProxyDataBuilder.cs (1)
165Regex parser = new
net\System\Net\WebPermission.cs (15)
194private Regex _AsRegex; 205internal DelayedRegex(Regex regex) 213internal Regex AsRegex 246private static volatile Regex s_MatchAllRegex; 247internal static Regex MatchAllRegex 268return (new Regex[] { MatchAllRegex }).GetEnumerator(); 291return (new Regex[] { MatchAllRegex }).GetEnumerator(); 342public WebPermission(NetworkAccess access, Regex uriRegex) { 452public void AddPermission(NetworkAccess access, Regex uriRegex) { 635if (String.Compare(regexToCheck, Regex.Escape(uri.GetComponents(UriComponents.HttpRequestUrl, UriFormat.UriEscaped)), StringComparison.OrdinalIgnoreCase ) == 0) 638else if (String.Compare(regexToCheck, Regex.Escape(uriPattern.ToString()), StringComparison.OrdinalIgnoreCase ) == 0) { 922tempStr=Regex.Escape(uri.GetComponents(UriComponents.HttpRequestUrl, UriFormat.UriEscaped)); 927tempStr = Regex.Escape(tempStr); 954tempStr=Regex.Escape(uri.GetComponents(UriComponents.HttpRequestUrl, UriFormat.UriEscaped)); 959tempStr = Regex.Escape(tempStr);
net\System\Net\webproxy.cs (3)
49private Regex[] _RegExBypassList; 306Regex[] regExBypassList = null; 310regExBypassList = new Regex[bypassList.Count];
regex\system\text\regularexpressions\RegexCompilationInfo.cs (3)
33matchTimeout = Regex.DefaultMatchTimeout; 42: this(pattern, options, name, fullnamespace, ispublic, Regex.DefaultMatchTimeout) { 124set { Regex.ValidateMatchTimeout(value); matchTimeout = value; }
regex\system\text\regularexpressions\RegexCompiler.cs (5)
3198DefineType(name, ispublic, typeof(Regex)); 3208_ilg.Emit(OpCodes.Call, typeof(Regex).GetConstructor(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance, 3271Call(typeof(Regex).GetMethod("InitializeReferences", BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic)); 3289Call(typeof(Regex).GetMethod("ValidateMatchTimeout", BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic)); 3346return typeof(Regex).GetField(fieldname, BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic);
regex\system\text\regularexpressions\RegexMatch.cs (4)
52internal Regex _regex; 78internal Match(Regex regex, int capcount, String text, int begpos, int len, int startpos) 101internal virtual void Reset(Regex regex, String text, int textbeg, int textend, int textstart) { 428internal MatchSparse(Regex regex, Hashtable caps, int capcount,
regex\system\text\regularexpressions\RegexMatchCollection.cs (2)
31internal Regex _regex; 49internal MatchCollection(Regex regex, String input, int beginning, int length, int startat) {
regex\system\text\regularexpressions\RegexReplacement.cs (3)
185internal String Replace(Regex regex, String input, int count, int startat) { 261internal static String Replace(MatchEvaluator evaluator, Regex regex, 340internal static String[] Split(Regex regex, String input, int count, int startat) {
regex\system\text\regularexpressions\RegexRunner.cs (6)
80protected internal Regex runregex; // regex object 110protected internal Match Scan(Regex regex, String text, int textbeg, int textend, int textstart, int prevlen, bool quick) { 119Match Scan(Regex regex, String text, int textbeg, int textend, int textstart, int prevlen, bool quick, TimeSpan timeout) { 127Regex.ValidateMatchTimeout(timeout); 129this.ignoreTimeout = (Regex.InfiniteMatchTimeout == timeout); 131? (Int32) Regex.InfiniteMatchTimeout.TotalMilliseconds
System.Activities (4)
Microsoft\VisualBasic\Activities\XamlIntegration\VisualBasicExpressionConverter.cs (1)
25static readonly Regex assemblyQualifiedNamespaceRegex = new Regex(
System\Activities\Expressions\Literal.cs (1)
23static Regex ExpressionEscapeRegex = new Regex(@"^(%*\[)");
System\Activities\WorkflowIdentity.cs (1)
20static Regex identityString = new Regex(
System\Activities\XamlIntegration\ActivityWithResultConverter.cs (1)
83static Regex LiteralEscapeRegex = new Regex(@"^(%+\[)");
System.Activities.Presentation (1)
Microsoft.Tools.Common\Microsoft\Activities\Presentation\TypeNameHelper.cs (1)
44Regex regex = new Regex("`[0-9]+");
System.ComponentModel.DataAnnotations (7)
DataAnnotations\EmailAddressAttribute.cs (2)
11private static Regex _regex = CreateRegEx(); 48private static Regex CreateRegEx() {
DataAnnotations\PhoneAttribute.cs (2)
9private static Regex _regex = CreateRegEx(); 63private static Regex CreateRegEx() {
DataAnnotations\RegularExpressionAttribute.cs (1)
35private Regex Regex { get; set; }
DataAnnotations\UrlAttribute.cs (2)
11private static Regex _regex = CreateRegEx(); 40private static Regex CreateRegEx() {
System.Configuration (1)
System\Configuration\RegexStringValidator.cs (1)
24private Regex _regex;
System.Core (3)
System\Management\Automation\UMPAttributes.cs (3)
125|| !Regex.Match(namespacePart, @"^[a-z,A-Z]").Success // All parts must start with letter 126|| Regex.Match(namespacePart, @"_$").Success // Must not end with an underscore 127|| Regex.Match(namespacePart, @"[^a-z,A-Z,0-9,_,\u0080-\uFFFF]").Success) // Only letters, digits, or underscores
System.Data (7)
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\TypeNameHelper.cs (1)
44Regex regex = new Regex("`[0-9]+");
fx\src\data\System\Data\Common\DBCommandBuilder.cs (1)
34private Regex _parameterNameParser;
fx\src\data\System\Data\Common\DbConnectionOptions.cs (4)
88private static readonly Regex ConnectionStringValidKeyRegex = new Regex(ConnectionStringValidKeyPattern, RegexOptions.Compiled); 89private static readonly Regex ConnectionStringValidValueRegex = new Regex(ConnectionStringValidValuePattern, RegexOptions.Compiled); 91private static readonly Regex ConnectionStringQuoteValueRegex = new Regex(ConnectionStringQuoteValuePattern, RegexOptions.Compiled); 92private static readonly Regex ConnectionStringQuoteOdbcValueRegex = new Regex(ConnectionStringQuoteOdbcValuePattern, RegexOptions.ExplicitCapture | RegexOptions.Compiled);
fx\src\data\System\Data\SqlClient\SqlCommandSet.cs (1)
24private static readonly Regex SqlIdentifierParser = new Regex(SqlIdentifierPattern, RegexOptions.ExplicitCapture|RegexOptions.Singleline);
System.Data.Entity (9)
System\Data\Common\CommandTrees\DbCommandTree.cs (1)
202private static readonly Regex _paramNameRegex = new Regex("^([A-Za-z])([A-Za-z0-9_])*$");
System\Data\Common\EntitySql\CqlLexerHelpers.cs (3)
58static Regex _reDateTimeValue; 59static Regex _reTimeValue; 60static Regex _reDateTimeOffsetValue;
System\Data\EntityModel\SchemaObjectModel\Function.cs (1)
48private static System.Text.RegularExpressions.Regex s_typeParser = new System.Text.RegularExpressions.Regex(@"^(?<modifier>((Collection)|(Ref)))\s*\(\s*(?<typeName>\S*)\s*\)$", System.Text.RegularExpressions.RegexOptions.Compiled);
System\Data\EntityModel\SchemaObjectModel\ScalarType.cs (2)
31private readonly static System.Text.RegularExpressions.Regex _BinaryValueValidator = new System.Text.RegularExpressions.Regex("^0[xX][0-9a-fA-F]+$", System.Text.RegularExpressions.RegexOptions.Compiled); 32private readonly static System.Text.RegularExpressions.Regex _GuidValueValidator = new System.Text.RegularExpressions.Regex("[0-9a-fA-F]{8,8}(-[0-9a-fA-F]{4,4}){3,3}-[0-9a-fA-F]{12,12}", System.Text.RegularExpressions.RegexOptions.Compiled);
System\Data\EntityModel\SchemaObjectModel\Utils.cs (1)
41private static Regex UndottedNameValidator = new Regex(@"^"+NameExp+@"$",RegexOptions.Singleline | RegexOptions.Compiled );
System\Data\Mapping\ViewGeneration\CqlGeneration\CqlWriter.cs (1)
24private static readonly Regex s_wordIdentifierRegex = new Regex(@"^[_A-Za-z]\w*$", RegexOptions.ECMAScript | RegexOptions.Compiled);
System.Data.Entity.Design (2)
System\Data\Entity\Design\PluralizationService\EnglishPluralizationService.cs (1)
851Regex.IsMatch(word, "[^a-zA-Z\\s]"))
System\Data\EntityModel\Emitters\CommentEmitter.cs (1)
34private static readonly Regex LeadingBlanks = new Regex(@"^(?<LeadingBlanks>\s{1,})\S", RegexOptions.Singleline | RegexOptions.Compiled);
System.Data.Linq (1)
SqlClient\Query\SqlIdentifier.cs (1)
133Match m = Regex.Match(quotedS, pattern);
System.Data.Services (1)
System\Data\Services\Serializers\JsonReader.cs (1)
32private static readonly Regex DateTimeFormat = new Regex(@"^/Date\((?<ticks>-?[0-9]+)\)/", RegexOptions.Compiled);
System.Data.Services.Design (1)
System\Data\EntityModel\Emitters\CommentEmitter.cs (1)
27private static readonly Regex LeadingBlanks = new Regex(@"^(?<LeadingBlanks>\s{1,})\S", RegexOptions.Singleline | RegexOptions.Compiled);
System.Data.SqlXml (3)
System\Xml\Xsl\QIL\QilXmlReader.cs (2)
28private static Regex lineInfoRegex = new Regex(@"\[(\d+),(\d+) -- (\d+),(\d+)\]"); 29private static Regex typeInfoRegex = new Regex(@"(\w+);([\w|\|]+);(\w+)");
System\Xml\Xsl\Xslt\Scripts.cs (1)
339Regex alphaNumeric = new Regex("^[0-9a-zA-Z]+$");
System.IdentityModel.Selectors (1)
infocard\client\System\IdentityModel\Selectors\CardSpaceShim.cs (1)
215return Regex.IsMatch(fileName, "^[A-Za-z0-9]+$");
System.Management (4)
Instrumentation\Attributes.cs (3)
66|| !Regex.Match(namespacePart, @"^[a-z,A-Z]").Success // All parts must start with letter 67|| Regex.Match(namespacePart, @"_$").Success // Must not end with an underscore 68|| Regex.Match(namespacePart, @"[^a-z,A-Z,0-9,_,\u0080-\uFFFF]").Success) // Only letters, digits, or underscores
Instrumentation\EventSource.cs (1)
531Match match = Regex.Match(strObjectPath.ToLower(CultureInfo.InvariantCulture), "(.*?)\\.instanceid=\"(.*?)\",processid=\"(.*?)\"");
System.Runtime.Serialization (2)
System\Runtime\Serialization\DataContract.cs (2)
2437if (Regex.IsMatch(internalsVisibleAttributeAssemblyName, Globals.SimpleSRSInternalsVisiblePattern) || 2438Regex.IsMatch(internalsVisibleAttributeAssemblyName, Globals.FullSRSInternalsVisiblePattern))
System.ServiceModel (4)
System\ServiceModel\Administration\WbemProvider.cs (4)
775static Regex nsRegEx = new Regex("^(?<namespace>[^\"]*?:)(?<path>.*)"); 776static Regex classRegEx = new Regex("^(?<className>.*?)\\.(?<keys>.*)"); 777static Regex keysRegEx = new Regex("(?<key>.*?)=((?<ival>[\\d]+)|\"(?<sval>.*?)\"),?"); 819static Regex regEx = new Regex("\\bfrom\\b\\s+(?<className>\\w+)", RegexOptions.IgnoreCase);
System.Web (81)
Configuration\CapabilitiesPattern.cs (5)
34internal static readonly Regex refPat = new Regex("\\G\\$(?:(?<name>\\d+)|\\{(?<name>\\w+)\\})"); 35internal static readonly Regex varPat = new Regex("\\G\\%\\{(?<name>\\w+)\\}"); 36internal static readonly Regex textPat = new Regex("\\G[^$%\\\\]*(?:\\.[^$%\\\\]*)*"); 37internal static readonly Regex errorPat = new Regex(".{0,8}"); 61strings.Add(Regex.Unescape(match.ToString()));
Configuration\CheckPair.cs (2)
29Regex regex = new Regex(match); 36Regex regex = new Regex(match);
Configuration\DelayedRegex.cs (1)
24private Regex _regex;
Configuration\HttpCapabilitiesBase.cs (1)
409Regex regex = RegexUtil.CreateRegex("\\.NET CLR (?'clrVersion'[0-9\\.]*)", RegexOptions.None);
Configuration\HttpCapabilitiesSectionHandler.cs (3)
380static Regex lineRegex = new Regex 393static Regex wsRegex = new Regex("\\G\\s*"); 394static Regex errRegex = new Regex("\\G\\S {0,8}");
Configuration\RegexWorker.cs (2)
31internal static readonly Regex RefPat = new BrowserCapsRefRegex(); 92Regex regex = RegexUtil.CreateRegex(regexExpression, RegexOptions.ExplicitCapture);
ErrorFormatter.cs (1)
1259Match m = Regex.Match(_htmlEncodedUrl, @"\.\w+$");
Handlers\AssemblyResourceLoader.cs (1)
33private readonly static Regex webResourceRegex = new WebResourceRegex();
Routing\ParsedRoute.cs (1)
669return Regex.Replace(escape, "([#;?:@&=+$,])", new MatchEvaluator(EscapeReservedCharacters));
Routing\Route.cs (1)
171return Regex.IsMatch(parameterValueString, constraintsRegEx,
Security\ADMembershipProvider.cs (1)
399Regex regex = new Regex( passwordStrengthRegularExpression );
Security\MembershipPasswordAttribute.cs (1)
194Regex passwordStrengthRegex;
Security\SQLMembershipProvider.cs (1)
138Regex regex = new Regex( _PasswordStrengthRegularExpression );
State\OutOfProcStateClientManager.cs (1)
184private static Regex _ipv6ConnectionStringFormat = new Regex(@"^\[(?<ipv6Address>.*)\]:(?<port>\d*)$");
UI\BaseParser.cs (17)
81private Regex _tagRegex; 83private readonly static Regex tagRegex35 = new TagRegex35(); 85private readonly static Regex tagRegex40 = new TagRegex(); 87internal readonly static Regex directiveRegex = new DirectiveRegex(); 88internal readonly static Regex endtagRegex = new EndTagRegex(); 89internal readonly static Regex aspCodeRegex = new AspCodeRegex(); 90internal readonly static Regex aspExprRegex = new AspExprRegex(); 91internal readonly static Regex aspEncodedExprRegex = new AspEncodedExprRegex(); 92internal readonly static Regex databindExprRegex = new DatabindExprRegex(); 93internal readonly static Regex commentRegex = new CommentRegex(); 94internal readonly static Regex includeRegex = new IncludeRegex(); 95internal readonly static Regex textRegex = new TextRegex(); 98internal readonly static Regex gtRegex = new GTRegex(); 99internal readonly static Regex ltRegex = new LTRegex(); 100internal readonly static Regex serverTagsRegex = new ServerTagsRegex(); 101internal readonly static Regex runatServerRegex = new RunatServerRegex(); 122internal Regex TagRegex {
UI\ControlBuilder.cs (8)
39private readonly static Regex databindRegex = new DataBindRegex(); 40internal readonly static Regex expressionBuilderRegex = new ExpressionBuilderRegex(); 41private readonly static Regex bindExpressionRegex = new BindExpressionRegex(); 42private readonly static Regex bindParametersRegex = new BindParametersRegex(); 43private readonly static Regex bindItemExpressionRegex = new BindItemExpressionRegex(); 44private readonly static Regex bindItemParametersRegex = new BindItemParametersRegex(); 45private readonly static Regex evalExpressionRegex = new EvalExpressionRegex(); 46private readonly static Regex formatStringRegex = new FormatStringRegex();
UI\CssStyleCollection.cs (1)
29private static readonly Regex _styleAttribRegex = new Regex(
UI\SimpleWebHandlerParser.cs (1)
43private readonly static Regex directiveRegex = new SimpleDirectiveRegex();
UI\TemplateParser.cs (1)
952Regex tagRegex = TagRegex;
UI\WebControls\basecomparevalidator.cs (5)
290Match m = Regex.Match(text, currencyExpression); 315Match m = Regex.Match(text, doubleExpression); 339Match m = Regex.Match(text, dateYearFirstExpression); 358m = Regex.Match(text, dateYearLastExpression); 475return Regex.Match(date, standardDateExpression).Success;
UI\WebControls\MailDefinition.cs (1)
276body = Regex.Replace(body, fromString, toString, RegexOptions.IgnoreCase);
UI\WebControls\RegularExpressionValidator.cs (1)
47Regex.IsMatch(String.Empty, value);
Util\RegexUtil.cs (6)
18return Regex.IsMatch(stringToMatch, pattern, regOption, TimeSpan.FromMilliseconds((double)timeout)); 20return Regex.IsMatch(stringToMatch, pattern, regOption); 28return Regex.Match(stringToMatch, pattern, regOption, TimeSpan.FromMilliseconds((double)timeout)); 30return Regex.Match(stringToMatch, pattern, regOption); 34public static Regex CreateRegex(string pattern, RegexOptions option, int? timeoutInMillsec) { 46internal static Regex CreateRegex(string pattern, RegexOptions option) {
Util\Wildcard.cs (18)
47internal Regex _regex; 49protected static Regex metaRegex = new Regex("[\\+\\{\\\\\\[\\|\\(\\)\\.\\^\\$]"); 50protected static Regex questRegex = new Regex("\\?"); 51protected static Regex starRegex = new Regex("\\*"); 52protected static Regex commaRegex = new Regex(","); 53protected static Regex slashRegex = new Regex("(?=/)"); 54protected static Regex backslashRegex = new Regex("(?=[\\\\:])"); 89protected virtual Regex RegexFromWildcard(String pattern, bool caseInsensitive) { 131private Regex _suffix; 205protected abstract Regex SuffixFromWildcard(String pattern, bool caseInsensitive); 206protected abstract Regex[][] DirsFromWildcard(String pattern); 229protected override Regex RegexFromWildcard(String pattern, bool caseInsensitive) { 259protected override Regex SuffixFromWildcard(String pattern, bool caseInsensitive) { 286protected override Regex[][] DirsFromWildcard(String pattern) { 288Regex[][] dirs = new Regex[alts.Length][]; 293Regex[] dirregex = new Regex[dirpats.Length];
System.Web.DataVisualization (1)
Common\General\ImageMap.cs (1)
174private static Regex _mapAttributesRegex;
System.Web.DynamicData (1)
DynamicData\ModelProviders\DLinqColumnProvider.cs (1)
13private static Regex s_varCharRegEx = new Regex(@"N?(?:Var)?Char\(([0-9]+)\)", RegexOptions.IgnoreCase); // accepts char, nchar, varchar, and nvarchar
System.Web.Extensions (5)
Script\Serialization\JavaScriptObjectDeserializer.cs (1)
371Match match = Regex.Match(_s.Substring(pos + DateTimeSuffixLength),
UI\ScriptRegistrationManager.cs (1)
24private static Regex ScriptTagRegex = new Regex(
UI\ScriptResourceAttribute.cs (1)
32private static readonly Regex _webResourceRegEx = new Regex(
UI\WebControls\QueryableDataSourceHelper.cs (2)
24private static readonly Regex IdentifierRegex = new Regex(IdentifierPattern + @"\s*$"); 26private static readonly Regex AutoGenerateOrderByRegex = new Regex(IdentifierPattern +
System.Web.Mobile (21)
Mobile\MobileErrorInfo.cs (2)
44private static Regex[] _searchExpressions = null; 296_searchExpressions = new Regex[_expressionCount];
UI\MobileControls\Adapters\WmlSelectionListAdapter.cs (2)
220selected = Regex.Replace(selected, ";$", ""); 221selectedItems = Regex.Split(selected, ";");
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicSelectionListAdapter.cs (2)
112selected = Regex.Replace(selected, ";$", ""); 113selectedItems = Regex.Split(selected, ";");
UI\MobileControls\Design\Util\SimpleParser.cs (14)
26private static Regex _unclosedTagRegex = null; 47private readonly static Regex _tagRegex = new TagRegex(); 48private readonly static Regex _directiveRegex = new DirectiveRegex(); 49private readonly static Regex _endtagRegex = new EndTagRegex(); 50private readonly static Regex _aspCodeRegex = new AspCodeRegex(); 51private readonly static Regex _aspExprRegex = new AspExprRegex(); 52private readonly static Regex _databindExprRegex = new DatabindExprRegex(); 53private readonly static Regex _commentRegex = new CommentRegex(); 54private readonly static Regex _includeRegex = new IncludeRegex(); 55private readonly static Regex _textRegex = new TextRegex(); 58private readonly static Regex _gtRegex = new GTRegex(); 59private readonly static Regex _ltRegex = new LTRegex(); 60private readonly static Regex _serverTagsRegex = new ServerTagsRegex(); 61private readonly static Regex _runatServerRegex = new RunatServerRegex();
UI\MobileControls\PhoneCall.cs (1)
65Match match = Regex.Match(value, PhoneNumberFormat);
System.Web.Services (7)
System\Web\Services\Discovery\LinkGrep.cs (6)
153private readonly static Regex tagRegex = new Regex 173private readonly static Regex doctypeDirectiveRegex = new Regex 179private readonly static Regex endtagRegex = new Regex 186private readonly static Regex commentRegex = new Regex 194private readonly static Regex whitespaceRegex = new Regex 200private readonly static Regex textRegex = new Regex
System\Web\Services\Protocols\PatternMatcher.cs (1)
65Regex regex;
System.Windows.Forms (1)
winforms\Managed\System\WinForms\ToolStripSettings.cs (1)
250Regex r = new Regex("(\\S+)");
System.Windows.Forms.DataVisualization (1)
Common\General\ImageMap.cs (1)
174private static Regex _mapAttributesRegex;
System.Workflow.ComponentModel (4)
AuthoringOM\Compiler\Configuration.cs (2)
70private Regex regex; 128public Regex RegularExpression
AuthoringOM\Compiler\TypeSystem\AttributeInfo.cs (1)
156returnValue = Regex.Unescape(returnValue);
AuthoringOM\Compiler\XomlCompilerParameters.cs (1)
538Regex options = new Regex(@"\s*[/-]rootnamespace[:=]\s*(?<RootNamespace>[^\s]*)");
System.Xml (18)
System\Xml\Schema\FacetChecker.cs (5)
721Regex regex = (Regex)restriction.Patterns[i]; 1105static Regex languagePattern; 1107static Regex LanguagePattern { 1110Regex langRegex = new Regex("^([a-zA-Z]{1,8})(-[a-zA-Z0-9]{1,8})*$", RegexOptions.None);
System\Xml\Serialization\SourceInfo.cs (2)
20static Regex regex = new Regex("([(][(](?<t>[^)]+)[)])?(?<a>[^[]+)[[](?<ia>.+)[]][)]?"); 22static Regex regex2 = new Regex("[(][(](?<cast>[^)]+)[)](?<arg>[^)]+)[)]");
System\Xml\Serialization\XmlSerializationILGen.cs (4)
65static Dictionary<string, Regex> regexs = new Dictionary<string, Regex>(); 66static internal Regex NewRegex(string pattern) { 67Regex regex;
System\Xml\Serialization\XmlSerializationReaderILGen.cs (5)
2732Regex regex = NewRegex("(?<locA1>[^ ]+) = .+EnsureArrayIndex[(](?<locA2>[^,]+), (?<locI1>[^,]+),[^;]+;(?<locA3>[^[]+)[[](?<locI2>[^+]+)[+][+][]]"); 2816Regex regex = NewRegex("(?<locA1>[^ ]+) = .+EnsureArrayIndex[(](?<locA2>[^,]+), (?<locI1>[^,]+),[^;]+;(?<locA3>[^[]+)[[](?<locI2>[^+]+)[+][+][]]"); 3607Regex regex = NewRegex("UnknownNode[(]null, @[\"](?<qnames>[^\"]*)[\"][)];"); 3654Regex regex = NewRegex("paramsRead\\[(?<index>[0-9]+)\\]"); 3663Regex regex = NewRegex("paramsRead\\[(?<index>[0-9]+)\\]");
System\Xml\XmlConvert.cs (2)
282private static volatile Regex c_EncodeCharPattern; 283private static volatile Regex c_DecodeCharPattern;