Html Regex leaves string unchanged
I'd like to remove some tags and the content of those tags in a html
string like this:
val htmlString = "<html><b>test,test</b></html>"
val strippedStr = htmlString.replaceAll("<b[^>]*>[a-z]*<//b>", "")
But it seems to leave the string unchanged.
Any idea what I'm doing wrong in particular ? (Maybe wrong escaping?)
Thanks in advance
No comments:
Post a Comment