Solved

Dreamweaver Search and Replace with Wildcard?

Posted on 2012-12-21
3
1,070 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

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…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

628 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