Monday, October 08, 2007

Remove HTML tags regex

when using an HTML parser is too much work, you may want to use a small regex to remove all the html tags

this is java:

7 comments:

  1. Works beautifully! Thanks.
    /Calle

    ReplyDelete
  2. Oh!It's work.
    Thank you very much! ^ ^

    ReplyDelete
  3. replaceAll("<[^>]*>", "");

    ReplyDelete
  4. Cool Stuff dude !!!

    Thanx

    ReplyDelete
  5. All of these regex are useless none of them is working.

    ReplyDelete
  6. @anon, really dude, did you even try 'any' of them? they work for me and those other 4 dudes above you

    ReplyDelete