Hi, i'm having some problems with regualr expressions,
how can i write a regualr expression so that the following string
it provides two matches 'Hello' and 'World'Code:strInput = "Hello:World"; strMatch = @"[^:]*:"; foreach(System.Text.RegularExpressions.Match m in System.Text.RegularExpressions.Regex.Matches(strInput,strMatch)) { Console.WriteLine(m.Value); }
Thanks
Rohan




Reply With Quote