Avatar of smudgemouse
smudgemouse
 asked on

Dreamweaver Search and Replace with Wildcard?

Have several thousand instances of:
mysql_free_result($rst_airport);
where ($rst...) will always be different.

Simply need to remove all of these lines. Is there a way?
Adobe Dreamweaver

Avatar of undefined
Last Comment
smudgemouse

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Peter Hart

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Jason C. Levine

Yes, Dreamweaver's search and replace supports regular expressions.  When you invoke the Search and Replace dialog, switch it to Code View and find the Use Regex checkbox on the dialog and check it.  The search would look something like this:

mysql_free_result\(\$rst.*\);

Try doing a search only on the above.

http://www.adobe.com/devnet/dreamweaver/articles/regular_expressions_pt1.html
http://www.adobe.com/devnet/dreamweaver/articles/regular_expressions_pt2.html
smudgemouse

ASKER
Thank you; very fast
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy