>>Message#
1458703 ? You can pass a StringComparison
>>
>>The follow up does it with regex.
>
>That message is pratically what I have now. When I translated that into VB.NET, it gave pretty much what I have now.
I see that you use String.Compare() and not IndexOf. Basically you are advancing (and comparing) one char at a time
I think IndexOf will be much faster
>
>As for RegEx, it is good. However, if I want to expand it a little bit, I won't be able to. So, after having thought a little bit about it, I decided to keep the actual code as is. Then, if I need to add some additional functionality to it, such as mentioned yesterday in regards to the VFP StrTran() function, I would be able to.
Gregory