Dreamweaver Search and Replace with Wildcard?

smudgemouse
smudgemouse used Ask the Experts™
on
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?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
in dreamweaver open the project
control-F to bring up the search/replace dialog box and the there is a line where you can state the whole folder
select the folder that contains the files with this statement.
and then fill  in the find and replace with what you want  (personally I would cop the folder to a back up incase)
maybe in you case -
if the $rst is different then replace
mysql_free_result  with
/*mysql_free_result    to make it a a comment ?
Jason C. LevineDon't talk to me.

Commented:
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

Author

Commented:
Thank you; very fast

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial