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

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
kster
Posts: 2
Joined: Tue Oct 14, 2008 9:09 pm
Location: NYC

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

Post 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...
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post 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
-----------------------------------------
Hope this was helpful.............good luck,
Bob
kster
Posts: 2
Joined: Tue Oct 14, 2008 9:09 pm
Location: NYC

Post by kster »

Of course! (*smacks forehead*)

This is perfect - thank you so much!
Post Reply