[Mono-devel-list] Regex: 'Split' function problem.
Namit Dhameja
ndhameja at panaceasoftware.com
Wed Feb 11 18:53:48 EST 2004
Hi,
I ran into problems when using the following code:
parseWith = "/";
Regex regPath = new Regex(parseWith,RegexOptions.RightToLeft);
return regPath.Split(parseString);
Basically it throws an exception at 'regPath.Split', the workaround is to use the code below:
char[] c = {'/'};
string[] pS = parseString.Split(c,parseString.Length-1);
return pS;
-Best Regards,
Namit.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040211/1bb450f4/attachment.html
More information about the Mono-devel-list
mailing list