my string data as as follow.
var HmtlStr = "<span>My names is <u>KERBEROS</u>. AGE: 29, my eyes <b>BROWN</b>.</span"
result must be like this which i want;
<span>My names is <u>Kerberos</u>. Age: 29, my eyes <b>Brown</b>.</span
thank you very much for your help, already now.
Use a function in a replace to change the strings:
Edit:
The built in
toLowerCasemethod handles most characters, you just have to include them in the set in the regular expression ([A-ZÖİŞÜĞÇ]) so that they are handled. To handle the few characters that the built in method doesn’t cope with, you can make a function that replaces those first:You can easily add more characters for the function to handle by adding them in the
/İ/pattern, the"İ"string and the replacement in the"ı"string.