249 references to RegexOptions
PresentationBuildTasks (2)
BuildTasks\Microsoft\Build\Tasks\Windows\UidManager.cs (2)
1342private static Regex EscapedXmlEntities = new Regex("(<|>|\"|'|&)", RegexOptions.CultureInvariant | RegexOptions.Compiled);
PresentationFramework (8)
src\Framework\MS\Internal\AppModel\DeploymentExceptionMapper.cs (2)
84RegexOptions.ExplicitCapture|RegexOptions.IgnoreCase);
src\Framework\MS\Internal\Globalization\BamlResourceContent.cs (2)
100private static Regex UnescapePattern = new Regex("(\\\\.?|&lt;|&gt;|&quot;|&apos;|&amp;)", RegexOptions.CultureInvariant | RegexOptions.Compiled);
src\Framework\System\Windows\Documents\WinRTSpellerInterop.cs (4)
645RegexOptions regexOptions = RegexOptions.Singleline | RegexOptions.CultureInvariant | RegexOptions.Compiled;
System (120)
net\System\Net\_WebProxyDataBuilder.cs (2)
167RegexOptions.IgnoreCase | RegexOptions.CultureInvariant);
net\System\Net\WebPermission.cs (4)
219_AsRegex = new Regex(_AsString + "[/]?", RegexOptions.IgnoreCase | RegexOptions.Compiled | RegexOptions.Singleline | RegexOptions.CultureInvariant);
net\System\Net\webproxy.cs (2)
312regExBypassList[i] = new Regex((string)bypassList[i], RegexOptions.IgnoreCase | RegexOptions.CultureInvariant);
regex\system\text\regularexpressions\Regex.cs (37)
53protected internal RegexOptions roptions; // the top-level options from the options string 209: this(pattern, RegexOptions.None, DefaultMatchTimeout, false) { 223public Regex(String pattern, RegexOptions options) 232Regex(String pattern, RegexOptions options, TimeSpan matchTimeout) 236private Regex(String pattern, RegexOptions options, TimeSpan matchTimeout, bool useCache) { 243if (options < RegexOptions.None || ( ((int) options) >> MaxOptionShift) != 0) 245if ((options & RegexOptions.ECMAScript) != 0 246&& (options & ~(RegexOptions.ECMAScript | 247RegexOptions.IgnoreCase | 248RegexOptions.Multiline | 250RegexOptions.Compiled | 252RegexOptions.CultureInvariant 263if ((options & RegexOptions.CultureInvariant) != 0) 322: this(info.GetString("pattern"), (RegexOptions) info.GetInt32("options")) { 445internal RegexRunnerFactory Compile(RegexCode code, RegexOptions roptions) { 512public RegexOptions Options { 726return IsMatch(input, pattern, RegexOptions.None, DefaultMatchTimeout); 739public static bool IsMatch(String input, String pattern, RegexOptions options) { 748static bool IsMatch(String input, String pattern, RegexOptions options, TimeSpan matchTimeout) { 799return Match(input, pattern, RegexOptions.None, DefaultMatchTimeout); 812public static Match Match(String input, String pattern, RegexOptions options) { 822static Match Match(String input, String pattern, RegexOptions options, TimeSpan matchTimeout) { 887return Matches(input, pattern, RegexOptions.None, DefaultMatchTimeout); 899public static MatchCollection Matches(String input, String pattern, RegexOptions options) { 908static MatchCollection Matches(String input, String pattern, RegexOptions options, TimeSpan matchTimeout) { 960return Replace(input, pattern, replacement, RegexOptions.None, DefaultMatchTimeout); 973public static String Replace(String input, String pattern, String replacement, RegexOptions options) { 982static String Replace(String input, String pattern, String replacement, RegexOptions options, TimeSpan matchTimeout) { 1061return Replace(input, pattern, evaluator, RegexOptions.None, DefaultMatchTimeout); 1073public static String Replace(String input, String pattern, MatchEvaluator evaluator, RegexOptions options) { 1082static String Replace(String input, String pattern, MatchEvaluator evaluator, RegexOptions options, TimeSpan matchTimeout) { 1150return Split(input, pattern, RegexOptions.None, DefaultMatchTimeout); 1161public static String[] Split(String input, String pattern, RegexOptions options) { 1170static String[] Split(String input, String pattern, RegexOptions options, TimeSpan matchTimeout) { 1380return(roptions & RegexOptions.Compiled) != 0; 1391return(roptions & RegexOptions.RightToLeft) != 0; 1395return(roptions & RegexOptions.CultureInvariant) != 0;
regex\system\text\regularexpressions\RegexCompilationInfo.cs (4)
23private RegexOptions options; 41public RegexCompilationInfo(String pattern, RegexOptions options, String name, String fullnamespace, bool ispublic) 45public RegexCompilationInfo(String pattern, RegexOptions options, String name, String fullnamespace, bool ispublic, TimeSpan matchTimeout) { 73public RegexOptions Options {
regex\system\text\regularexpressions\RegexCompiler.cs (8)
112internal RegexOptions _options; // options 193internal static RegexRunnerFactory Compile(RegexCode code, RegexOptions options) { 223RegexOptions options = regexes[i].Options; 977if ((_options & RegexOptions.CultureInvariant) != 0) 2584if ((_options & RegexOptions.ECMAScript) != 0) 3123internal Type FactoryTypeFromCode(RegexCode code, RegexOptions options, String typeprefix) { 3186internal void GenerateRegexType(String pattern, RegexOptions opts, String name, bool ispublic, RegexCode code, RegexTree tree, Type factory, TimeSpan matchTimeout) { 3415internal RegexRunnerFactory FactoryInstanceFromCode(RegexCode code, RegexOptions options) {
regex\system\text\regularexpressions\RegexFCD.cs (6)
55CultureInfo culture = ((t._options & RegexOptions.CultureInvariant) != 0) ? CultureInfo.InvariantCulture : CultureInfo.CurrentCulture; 89return new RegexPrefix(pref, 0 != (curNode._options & RegexOptions.IgnoreCase)); 95return new RegexPrefix(curNode._ch.ToString(CultureInfo.InvariantCulture), 0 != (curNode._options & RegexOptions.IgnoreCase)); 98return new RegexPrefix(curNode._str, 0 != (curNode._options & RegexOptions.IgnoreCase)); 360if ((node._options & RegexOptions.IgnoreCase) != 0) 362if ((node._options & RegexOptions.RightToLeft) != 0)
regex\system\text\regularexpressions\RegexInterpreter.cs (1)
845if ((runregex.roptions & RegexOptions.ECMAScript) == 0)
regex\system\text\regularexpressions\RegexNode.cs (18)
126internal RegexOptions _options; 130internal RegexNode(int type, RegexOptions options) { 135internal RegexNode(int type, RegexOptions options, char ch) { 141internal RegexNode(int type, RegexOptions options, String str) { 147internal RegexNode(int type, RegexOptions options, int m) { 153internal RegexNode(int type, RegexOptions options, int m, int n) { 161return(_options & RegexOptions.RightToLeft) != 0; 351RegexOptions optionsLast; 352RegexOptions optionsAt; 381optionsAt = at._options & (RegexOptions.RightToLeft | RegexOptions.IgnoreCase); 455RegexOptions optionsLast; 456RegexOptions optionsAt; 476((at._options & RegexOptions.RightToLeft) == (_options & RegexOptions.RightToLeft))) { 486optionsAt = at._options & (RegexOptions.RightToLeft | RegexOptions.IgnoreCase); 501if ((optionsAt & RegexOptions.RightToLeft) == 0) {
regex\system\text\regularexpressions\RegexParser.cs (33)
47internal RegexOptions _options; 48internal List<RegexOptions> _optionsStack; 61internal static RegexTree Parse(String re, RegexOptions op) { 66p = new RegexParser((op & RegexOptions.CultureInvariant) != 0 ? CultureInfo.InvariantCulture : CultureInfo.CurrentCulture); 90internal static RegexReplacement ParseReplacement(String rep, Hashtable caps, int capsize, Hashtable capnames, RegexOptions op) { 95p = new RegexParser((op & RegexOptions.CultureInvariant) != 0 ? CultureInfo.InvariantCulture : CultureInfo.CurrentCulture); 193_optionsStack = new List<RegexOptions>(); 215internal void Reset(RegexOptions topopts) { 675_options &= ~(RegexOptions.RightToLeft); 680_options &= ~(RegexOptions.RightToLeft); 702_options |= RegexOptions.RightToLeft; 710_options |= RegexOptions.RightToLeft; 1337internal bool IsOnlyTopOption(RegexOptions option) { 1338return(option == RegexOptions.RightToLeft 1340|| option == RegexOptions.Compiled 1342|| option == RegexOptions.CultureInvariant 1343|| option == RegexOptions.ECMAScript 1353RegexOptions option; 1473internal static RegexOptions OptionFromCode(char ch) { 1481return RegexOptions.Compiled; 1484return RegexOptions.IgnoreCase; 1486return RegexOptions.RightToLeft; 1488return RegexOptions.Multiline; 1490return RegexOptions.ExplicitCapture; 1492return RegexOptions.Singleline; 1494return RegexOptions.IgnorePatternWhitespace; 1500return RegexOptions.ECMAScript; 1756return(_options & RegexOptions.ExplicitCapture) != 0; 1763return(_options & RegexOptions.IgnoreCase) != 0; 1770return(_options & RegexOptions.Multiline) != 0; 1777return(_options & RegexOptions.Singleline) != 0; 1784return(_options & RegexOptions.IgnorePatternWhitespace) != 0; 1791return(_options & RegexOptions.ECMAScript) != 0;
regex\system\text\regularexpressions\RegexTree.cs (2)
19internal RegexTree(RegexNode root, Hashtable caps, Int32[] capnumlist, int captop, Hashtable capnames, String[] capslist, RegexOptions opts) 45internal RegexOptions _options;
regex\system\text\regularexpressions\RegexWriter.cs (3)
291rtl = ((tree._options & RegexOptions.RightToLeft) != 0); 293CultureInfo culture = (tree._options & RegexOptions.CultureInvariant) != 0 ? CultureInfo.InvariantCulture : CultureInfo.CurrentCulture; 315if ((node._options & RegexOptions.IgnoreCase) != 0)
System.Activities (3)
Microsoft\VisualBasic\Activities\XamlIntegration\VisualBasicExpressionConverter.cs (2)
26"clr-namespace:(?<namespace>[^;]*);assembly=(?<assembly>.*)", RegexOptions.Compiled | RegexOptions.IgnoreCase);
System\Activities\WorkflowIdentity.cs (1)
24$", RegexOptions.IgnorePatternWhitespace);
System.ComponentModel.DataAnnotations (13)
DataAnnotations\EmailAddressAttribute.cs (4)
55const RegexOptions options = RegexOptions.Compiled | RegexOptions.IgnoreCase | RegexOptions.ExplicitCapture;
DataAnnotations\PhoneAttribute.cs (4)
70const RegexOptions options = RegexOptions.Compiled | RegexOptions.IgnoreCase | RegexOptions.ExplicitCapture;
DataAnnotations\RegularExpressionAttribute.cs (1)
111: Regex = new Regex(Pattern, default(RegexOptions), TimeSpan.FromMilliseconds((double)MatchTimeoutInMilliseconds));
DataAnnotations\UrlAttribute.cs (4)
48const RegexOptions options = RegexOptions.Compiled | RegexOptions.IgnoreCase | RegexOptions.ExplicitCapture;
System.Configuration (1)
System\Configuration\RegexStringValidator.cs (1)
32_regex = new Regex(regex, RegexOptions.Compiled);
System.Data (9)
fx\src\data\System\Data\Common\DBCommandBuilder.cs (2)
51_parameterNameParser = new Regex(_dbCommandBuilder.ParameterNamePattern, RegexOptions.ExplicitCapture | RegexOptions.Singleline);
fx\src\data\System\Data\Common\DbConnectionOptions.cs (5)
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 (2)
24private static readonly Regex SqlIdentifierParser = new Regex(SqlIdentifierPattern, RegexOptions.ExplicitCapture|RegexOptions.Singleline);
System.Data.Entity (13)
System\Data\Common\EntitySql\CqlLexerHelpers.cs (6)
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 (2)
41private static Regex UndottedNameValidator = new Regex(@"^"+NameExp+@"$",RegexOptions.Singleline | RegexOptions.Compiled );
System\Data\Mapping\ViewGeneration\CqlGeneration\CqlWriter.cs (2)
24private static readonly Regex s_wordIdentifierRegex = new Regex(@"^[_A-Za-z]\w*$", RegexOptions.ECMAScript | RegexOptions.Compiled);
System.Data.Entity.Design (2)
System\Data\EntityModel\Emitters\CommentEmitter.cs (2)
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 (2)
System\Data\EntityModel\Emitters\CommentEmitter.cs (2)
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 (34)
Configuration\HttpCapabilitiesBase.cs (1)
409Regex regex = RegexUtil.CreateRegex("\\.NET CLR (?'clrVersion'[0-9\\.]*)", RegexOptions.None);
Configuration\RegexWorker.cs (1)
92Regex regex = RegexUtil.CreateRegex(regexExpression, RegexOptions.ExplicitCapture);
Routing\Route.cs (2)
172RegexOptions.CultureInvariant | RegexOptions.IgnoreCase);
Security\ADMembershipProvider.cs (2)
743if( !RegexUtil.IsMatch( password, PasswordStrengthRegularExpression, RegexOptions.None, passwordStrengthRegexTimeout ) ) 1232if( !RegexUtil.IsMatch( newPassword, PasswordStrengthRegularExpression, RegexOptions.None, passwordStrengthRegexTimeout ) )
Security\MembershipPasswordAttribute.cs (1)
197passwordStrengthRegex = RegexUtil.CreateRegex(passwordStrengthRegularExpression, RegexOptions.None, PasswordStrengthRegexTimeout);
Security\SQLMembershipProvider.cs (2)
337if( !RegexUtil.IsMatch( password, PasswordStrengthRegularExpression, RegexOptions.None, _passwordStrengthRegexTimeout ) ) 586if( !RegexUtil.IsMatch( newPassword, PasswordStrengthRegularExpression, RegexOptions.None, _passwordStrengthRegexTimeout ) )
UI\CssStyleCollection.cs (3)
35RegexOptions.Singleline | 36RegexOptions.Multiline | 37RegexOptions.ExplicitCapture);
UI\WebControls\MailDefinition.cs (1)
276body = Regex.Replace(body, fromString, toString, RegexOptions.IgnoreCase);
UI\WebControls\RegularExpressionValidator.cs (1)
93Match m = RegexUtil.Match(controlValue, ValidationExpression, RegexOptions.None, MatchTimeout);
Util\RegexUtil.cs (4)
14public static bool IsMatch(string stringToMatch, string pattern, RegexOptions regOption, int? timeoutInMillsec) { 24public static Match Match(string stringToMatch, string pattern, RegexOptions regOption, int? timeoutInMillsec) { 34public static Regex CreateRegex(string pattern, RegexOptions option, int? timeoutInMillsec) { 46internal static Regex CreateRegex(string pattern, RegexOptions option) {
Util\Wildcard.cs (16)
90RegexOptions options = RegexOptions.None; 95options = RegexOptions.RightToLeft | RegexOptions.Singleline; 97options = RegexOptions.Singleline; 102options |= RegexOptions.IgnoreCase | RegexOptions.CultureInvariant; 230RegexOptions options; 235options = RegexOptions.RightToLeft; 237options = RegexOptions.None; 242options |= RegexOptions.IgnoreCase | RegexOptions.CultureInvariant; 260RegexOptions options; 264options = RegexOptions.RightToLeft; 269options |= RegexOptions.IgnoreCase | RegexOptions.CultureInvariant;
System.Web.DataVisualization (4)
Common\General\ImageMap.cs (4)
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 (7)
UI\ScriptRegistrationManager.cs (4)
34RegexOptions.Singleline | RegexOptions.Multiline | RegexOptions.IgnoreCase | RegexOptions.Compiled);
UI\ScriptResourceAttribute.cs (2)
34RegexOptions.Singleline | RegexOptions.Multiline);
UI\WebControls\QueryableDataSourceHelper.cs (1)
27@"(\s+(asc|ascending|desc|descending))?\s*$", RegexOptions.IgnoreCase); // order operators
System.Web.Mobile (15)
Mobile\MobileErrorInfo.cs (12)
303RegexOptions.Singleline | 304RegexOptions.IgnoreCase | 305RegexOptions.CultureInvariant | 306RegexOptions.Compiled); 312RegexOptions.Singleline | 313RegexOptions.IgnoreCase | 314RegexOptions.CultureInvariant | 315RegexOptions.Compiled); 319RegexOptions.Singleline | 320RegexOptions.IgnoreCase | 321RegexOptions.CultureInvariant | 322RegexOptions.Compiled);
UI\MobileControls\Design\Util\SimpleParser.cs (3)
28private const RegexOptions _options = 29RegexOptions.Singleline | RegexOptions.Multiline;
System.Web.Services (6)
System\Web\Services\Discovery\LinkGrep.cs (3)
176RegexOptions.IgnoreCase | RegexOptions.Multiline | RegexOptions.IgnorePatternWhitespace
System\Web\Services\Protocols\PatternMatcher.cs (3)
187member.regex = new Regex(attr.Pattern, RegexOptions.Singleline | (attr.IgnoreCase ? RegexOptions.IgnoreCase | RegexOptions.CultureInvariant : 0));
System.Windows.Forms.DataVisualization (4)
Common\General\ImageMap.cs (4)
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);