Under MFC I use to do a replace and capture the number of times an item was replaced. In the CLR I have not been able to locate a way to do the same type thing short of replacing an item with spaces then subtracting the lengths of the string to get my value.
Is there a function/method that will do this for me?
hi bob,
you could use a regular expression before the Replace() method and you could
figure out the number of matches.
post some code and i'll be happy to do up a quick solution if you like.
tim
\\ email: tim at mackey dot ie //
\\ blog: http://tim.mackey.ie //
67d0ebfec70e8db3
> Under MFC I use to do a replace and capture the number of times an item was replaced. In the CLR I have not been able to locate a way to do the
same type thing short of replacing an item with spaces then subtracting the
lengths of the string to get my value.
> Is there a function/method that will do this for me?