18 March 2012

Code to strip html tags in Notepad++ and leave only text


Select "Regular Expression" in Search Mode. Enter [<].*?> in Find What field and leave the Replace With field empty. Note that you need to have version 5.9 of Notepad++ for the ? operator to work.


For more regex search help in Notepad++, see http://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=Regular_Expressions

5 comments:

Chalermpol Punjatep said...

Thanks so much. You saved my day :)

clod said...

Codelobster supports regexps better.

Blake Thomas Andrew said...

If you can't use the ?, then <[^>]*> should work instead. It matches a "<" followed by any number (including none) of any character other than ">", followed by ">"

Abhinav Saxena said...

Appreciate your help, thanks!!!! :-)

Manuel Sánchez said...

Thank you very much!