I have a file with several different lines. I'm looking for lines that contain(more or less) pattern like this:
In other words, I want the lines that have
<something> between . Examples might be:
Line with [ <matching>|<pattern>] A line <that> does[not]<match> But [this[<should>]be matched] too [match [me] <buddy>]
The only characters allowed between <> are alphanumeric characters and underscore.
I've tried both regexp above and its lazy version, but it didn't seem to work. What is the proper regexp?