This works in Notepad++:
Find what: <[^>]+?>
Replace with: nothing
Try it out: http://regex101.com/r/lC9mD4
There are a few problems with your attempt: <.*[^>^<]>
.*
matches all characters up through the final possible match. This means that all tags except the last will be bypassed. This is called greedy. In my solution, I have changed it to possessive, which goes up to the first possible match:.*?
...although I apply this to the character class itself:[^>]+?
.[^>^<]
is incorrect for two reasons, one small, one big. The small reason is that the first caret^
says "do not match any of the following characters", and the characters following it are>
,^
, and<
. So you are saying you don't want to match the caret character, which is incorrect (but not harmful). The larger problem is that this is attempting to match exactly one character, when it needs to be one or more, which is signified by the plus sign:[^><]+
.
Otherwise, your attempt is not that far off from my solution.