Notepad++ Search for a and match till the end of the line

notepadregex

I have some lines like:

    <itunes:author>XXX</itunes:author>
    <itunes:subtitle>YYY</itunes:subtitle>

I need to remove for example the lines with itunes:autor tag. I tried with "Search" (CTRL+F) – "Regex" selected: <itunes:author> .* , but it didn't work. Tried with itunes:author .*, no match either. What's the problem? How can I select those lines? Should I escape the < in some way to make the .* "trick" work?

Best Answer

The approach you describe does work:

<itunes:author>.*

As seen below:

Notepad++ 'find' window

Related Question