Link to home
Start Free TrialLog in
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?
ASKER CERTIFIED SOLUTION
Avatar of Peter Hart
Peter Hart
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
Avatar of smudgemouse
smudgemouse

ASKER

Thank you; very fast