I am trying to replace all substrings which start with the &
character and end with ;
. For example "
Will be great if somebody can suggest me how to convert all unicodes.
I am trying to replace all substrings which start with the &
character and end with ;
. For example "
Will be great if somebody can suggest me how to convert all unicodes.
Instance a RegExp
object with &.*?;
expression and the g
flag then use it to perform replacement with an empty string
""Some"".replace(new RegExp("&.*?;", "g"), "");