J
John B
I am trying to do a pretty simple pattern match using regex.
The pattern is ^(?
?<Item>.*?)@
)*$.
This should return a match for test123@
but does not, instead it never
returns when I call Regex.Match, I have to kill the thread.
The code is below, The Regulator (some will know it) returns the correct
results, I cannot work out why.
RegexOptions options = RegexOptions.IgnoreCase |
RegexOptions.IgnorePatternWhitespace | RegexOptions.Multiline;
Regex matcher = new Regex(@"^(?
?<Item>.*?)@
)*$", options);
Match match = matcher.Match(@"test123@
"); //Never returns from here.
I have tried this on two machines, it just doesnt work.
TIA
JB
The pattern is ^(?


This should return a match for test123@

returns when I call Regex.Match, I have to kill the thread.
The code is below, The Regulator (some will know it) returns the correct
results, I cannot work out why.
RegexOptions options = RegexOptions.IgnoreCase |
RegexOptions.IgnorePatternWhitespace | RegexOptions.Multiline;
Regex matcher = new Regex(@"^(?


Match match = matcher.Match(@"test123@

I have tried this on two machines, it just doesnt work.
TIA
JB