Hello,
I want to replace a string inside a special control.
For example replace any "a" word with "b".
You might think it's easy.
Something like:
But it has a problem!
It just replace all match case strings.
So if the string is in upper/lower/mixed mode, it cannot find it.
Now what should I do?
I was not able to find a way.
You may think something like:
But it will destroy my original text, since it will convert all the output to upper case!
I need help.
Thanks.
I want to replace a string inside a special control.
For example replace any "a" word with "b".
You might think it's easy.
Something like:
Visual Basic:
SelectedElement.innerHTML = Replace(SelectedElement.innerHTML, FindText.Text, ReplaceText.Text)
It just replace all match case strings.
So if the string is in upper/lower/mixed mode, it cannot find it.
Now what should I do?
I was not able to find a way.
You may think something like:
Visual Basic:
SelectedElement.innerHTML = Replace(UCase(SelectedElement.innerHTML), UCase(FindText.Text), ReplaceText.Text)
I need help.
Thanks.