Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1148
  • Last Modified:

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?
0
smudgemouse
Asked:
smudgemouse
1 Solution
 
chilternPCCommented:
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 ?
0
 
Jason C. LevineNo oneCommented:
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
0
 
smudgemouseAuthor Commented:
Thank you; very fast
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now