javascript - Extract CSS Style From String in JAVA -


i have string in java not escaped contains css, javascript , html.

i need extract css string, need search start <style , finish </style> , start <link , finish >

any suggestions?

the regex might this. string result = searchtext.replaceall("<style>([^<]*)</style>", "$1"); should change text whats inside tag, modify tag


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

ruby - Nesting modules inside of a Rails eninge gem -

Eclipse formatter for java ending braces -