Page 1 of 1

searching with wildcards

Posted: Wed Jul 26, 2006 8:29 pm
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

Posted: Wed Jul 26, 2006 9:48 pm
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]="";