I actually used this functionality quite heavily recently, to narrow in on
an encoded url in a webpage source. I split the string after a "<td
id=\"...\">" element, or something similar, that occurred once and was
unique, and took the second part.
Then I took the first part of the split at "</td>".
Then I took the second part of "<a href=\"".
Then I took the first part of ">".
"Jon Skeet [C# MVP]" <sk***@pobox.comwrote in message
news:5b**********************************@s50g2000 hsb.googlegroups.com...
On Jul 30, 3:55 pm, CSharper <cshar...@gmx.comwrote:
Use Regex.Split.
Duh???
Which part didn't you understand? In the RegEx class, there's a Split
method. Construct an appropriate regex, and call the Split method.
As Pavel mentioned, String also now contains an overload for
String.Split which takes an array of delimiter strings instead of
chars. It's "new" to 2.0, but hopefully that won't be an issue for
you.
Jon