searching with wildcards

Ideas for new features

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
colton22
Posts: 2
Joined: Mon Jul 10, 2006 4:26 pm
Contact:

searching with wildcards

Post by colton22 »

i am wondering if textpad could be used to search with a wildcard (*)

meaning...

var the=new Array();
the[the.length]="a";
the[the.length]="b";
the[the.length]="c";
the[the.length]="d";
the[the.length]="e";
the[the.length]="f";
the[the.length]="g";
the[the.length]="h";

find and replace the[the.length]="*" with the[the.length]=""

replace al the above with no value instead then

that would be nice

colton22
love is life, life is love, but what is life without love and love without life??
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post by Bob Hansen »

Use Search/Replace, with check mark on for Regular Expressions

Serach for ".*"
Replace with ""

This will replace anything within any quotes anywhere on the line.

This:
the[the.length]="a";
the[the.length]="b";
the[the.length]="c";
the[the.length]="d";
the[the.length]="e";
the[the.length]="f";
the[the.length]="g";
the[the.length]="h";

Becomes this:
the[the.length]="";
the[the.length]="";
the[the.length]="";
the[the.length]="";
the[the.length]="";
the[the.length]="";
the[the.length]="";
the[the.length]="";
Hope this was helpful.............good luck,
Bob
Post Reply