Solved

Dreamweaver Search and Replace with Wildcard?

Posted on 2012-12-21
3
966 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
3 Comments
 
LVL 28

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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

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…
This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

706 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now