2

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?

3 Answers 3

4

The approach you describe does work:

<itunes:author>.*

As seen below:

Notepad++ 'find' window

2
  • I don't know why.. now it magically started working. I can't believe this! -.- Feb 11, 2013 at 2:24
  • 2
    Might be the space in your regular expression. The expression you put in your question has a space character between "<itunes:author>" and ".*". Notepad++ searches for space character also. Feb 11, 2013 at 16:35
2

Set search mode to regular expression and use this search string <itunes:author>.*

enter image description here

1

Make sure that you don't have the ". Matches newline" box checked. I was having the same issue. Once I unchecked it, I was good to go.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.