• Post Reply Bookmark Topic Watch Topic
  • New Topic

Regular Expression  RSS feed

 
Chetan Parekh
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a String that contains HTML data.

I need to achieve 2 things
(1) If <script> and </script> exist in String, remove between and including.
(2) If <script> exist but</script> doesn�t, then remove all after <script> and including.

How to do this?
 
Michael Ernest
High Plains Drifter
Sheriff
Posts: 7292
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This seems more like an intermediate topic to me.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!