>Is this one case-sensitive? (not tested - i don't use vb.net) - might be the long way around....
>
>
http://www.rcsbox.com/vbcodestore/thecode/00000029.html>
>oops...the loop makes it definitely not as efficient as regex... Never mind - bad example ...(also too close to what you were doing) (that didn't come out right)
I think Cetin's approach is the one that would do it. However, I realized after that if I want to make it evolved, I am better to keep it as is.