S
shawnmkramer
Anyone every heard of the Regex.IsMatch and Regex.Match methods just
hanging and eventually getting a message "Requested Service not
found"?
I have the following pattern:
^(?<OrgCity>([A-Z][\w ]+)+), City of, (?<OrgState>(([A-Z][A-Z])|([A-Z]
[a-z]+\.)))( \((?<OrgCountry>[\w ]{2,})\))?$
(ignore the line wrap)
trying to match the following data:
ENVIRONMENTAL RESTORATION AND WASTE MANAGEMENT, DOE (US)
The following code will simply hang for a long time then write the
message "Requested Service not found" to the debug console:
Regex myRegex = new Regex(@"^(?<OrgCity>([A-Z][\w ]+)+), City of, (?
<OrgState>(([A-Z][A-Z])|([A-Z][a-z]+\.)))( \((?<OrgCountry>[\w ]{2,})
\))?$", RegexOptions.Compiled);
myRegex.IsMatch("ENVIRONMENTAL RESTORATION AND WASTE MANAGEMENT, DOE
(US)");
hanging and eventually getting a message "Requested Service not
found"?
I have the following pattern:
^(?<OrgCity>([A-Z][\w ]+)+), City of, (?<OrgState>(([A-Z][A-Z])|([A-Z]
[a-z]+\.)))( \((?<OrgCountry>[\w ]{2,})\))?$
(ignore the line wrap)
trying to match the following data:
ENVIRONMENTAL RESTORATION AND WASTE MANAGEMENT, DOE (US)
The following code will simply hang for a long time then write the
message "Requested Service not found" to the debug console:
Regex myRegex = new Regex(@"^(?<OrgCity>([A-Z][\w ]+)+), City of, (?
<OrgState>(([A-Z][A-Z])|([A-Z][a-z]+\.)))( \((?<OrgCountry>[\w ]{2,})
\))?$", RegexOptions.Compiled);
myRegex.IsMatch("ENVIRONMENTAL RESTORATION AND WASTE MANAGEMENT, DOE
(US)");