2
I have the string below:
texto = "Meu texto"
I would like to replace the word "My" and return it in bold. The result would look like this:
Man text
However, replace is case sensitive, that is, if I use replace(texto,"meu","<b>meu</b>")
nothing happens because of the capital’M' .
Is there any way I can replace in classic ASP with Vbscript ignoring upper or lower case letters? Or it’s easier to do this in Javascript or jQuery?
Note: I could convert everything to lowercase, but I want the return to keep the uppercase letters of the string.
Thank you! It worked as I would like.
– Sam