Page 1 of 1

Marking lines that contain TWO or more instances of "=&

Posted: Tue Oct 14, 2008 9:45 pm
by kster
Hi,

I'm new to using regular expressions, so please excuse my naiveté..

I have a huge data file that contains large strings of key-value pairs, along with a lot of crap that I just don't need.

Using TextPad, I'm trying to do a find (and mark) for lines that contain TWO or more instances of the "=" character. I tried to use:

=\{2\}+

But that only finds:

"==" (i.e. two equal signs right next to each other)

Whereas I was hoping that TextPad would be able to isolate (i.e. mark) the lines that had this:

"...kret=3728490-;jkli=890njkhjk;uiy=89jklui<CRLF>"

But not this:

"...uyi=343jjkouu;<CRLF>"

So, if any of that made any sense...is this possible?

Thanks...

Posted: Wed Oct 15, 2008 12:24 am
by Bob Hansen
Search/Find, find what: =.*=

Use the following settings:
-----------------------------------------
[X] Regular expression
Mark All
-----------------------------------------
Configure | Preferences | Editor
[X] Use POSIX regular expression syntax
-----------------------------------------

Posted: Wed Oct 15, 2008 3:20 pm
by kster
Of course! (*smacks forehead*)

This is perfect - thank you so much!