Solved

Dreamweaver Search and Replace with Wildcard?

Posted on 2012-12-21
3
1,042 Views
Last Modified: 2012-12-21
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
Comment
Question by:smudgemouse
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 29

Accepted Solution

by:
chilternPC earned 500 total points
ID: 38714501
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
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 38714507
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
 

Author Closing Comment

by:smudgemouse
ID: 38714570
Thank you; very fast
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question