51 references to 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 (4)
net\System\Net\_WebProxyDataBuilder.cs (1)
166Regex("^(?<scheme>.*://)?(?<host>[^:]*)(?<port>:[0-9]{1,5})?$",
net\System\Net\WebPermission.cs (1)
219_AsRegex = new Regex(_AsString + "[/]?", RegexOptions.IgnoreCase | RegexOptions.Compiled | RegexOptions.Singleline | RegexOptions.CultureInvariant);
net\System\Net\webproxy.cs (1)
312regExBypassList[i] = new Regex((string)bypassList[i], RegexOptions.IgnoreCase | RegexOptions.CultureInvariant);
regex\system\text\regularexpressions\Regex.cs (1)
322: this(info.GetString("pattern"), (RegexOptions) info.GetInt32("options")) {
System.Activities (2)
Microsoft\VisualBasic\Activities\XamlIntegration\VisualBasicExpressionConverter.cs (1)
25static readonly Regex assemblyQualifiedNamespaceRegex = new Regex(
System\Activities\WorkflowIdentity.cs (1)
20static Regex identityString = new Regex(
System.ComponentModel.DataAnnotations (3)
DataAnnotations\EmailAddressAttribute.cs (1)
71return new Regex(pattern, options);
DataAnnotations\PhoneAttribute.cs (1)
86return new Regex(pattern, options);
DataAnnotations\UrlAttribute.cs (1)
64return new Regex(pattern, options);
System.Configuration (1)
System\Configuration\RegexStringValidator.cs (1)
32_regex = new Regex(regex, RegexOptions.Compiled);
System.Data (6)
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 (8)
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.ServiceModel (1)
System\ServiceModel\Administration\WbemProvider.cs (1)
819static Regex regEx = new Regex("\\bfrom\\b\\s+(?<className>\\w+)", RegexOptions.IgnoreCase);
System.Web (5)
UI\CssStyleCollection.cs (1)
29private static readonly Regex _styleAttribRegex = new Regex(
Util\RegexUtil.cs (1)
40return new Regex(pattern, option);
Util\Wildcard.cs (3)
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 (3)
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 (1)
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 (2)
System\Web\Services\Discovery\LinkGrep.cs (1)
173private readonly static Regex doctypeDirectiveRegex = 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.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 (1)
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);
System.Xml (2)
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);