Dreamweaver CS6 "Find and Replace" not working

Since I've started working in DW CS6 I've noticed that the Find and Replace feature isn't working completely.
E.g. If I select a block of code, then open Find and Replace, tell it to find "<br />" and replace it with "</li>" it only replaces the first instance. The rest of the <br />'s are still <br />'s.
Is this happening to anyone else? I may have to switch back to CS5.

bracdiver wrote:
** ANSWER/Workaround
Change the selection in the 'Search:' dropdown from the default 'Source:'  to 'Text' or 'Text (Advanced)' and you will get the desired result.
bracdiver, your post may be useful in some examples, like the ones I posted above. However, this does not work in my intended example below (which is source code specific), where the actual source code needs to be replaced:
Sample
     <p>These are true or false questions. Place your answer on the blank under each question.</p>
<ol>
    <li>There are twelve in a baker's dozen</li>
    <li>35% of people are going to school.</li>
    <li>There are seven books in the Harry Potter series.</li>
    <li>The longest running play is "Les Miserables"</li>
    <li>There is no blank under this question. <i>Answer beside this question instead.</i></li>
</ol>
Using these options
Find in: Selected Text (first four list items)
Search: Source code:
Find: </li>
Replace: <br />___________________</li>
Options enabled: Match case
Desired output:
<p>These are true or false questions. Place your answer on the blank under each question.</p>
<ol>
    <li>There are twelve in a baker's dozen<br />___________________</li>
    <li>35% of people are going to school.<br />___________________</li>
    <li>There are seven books in the Harry Potter series.<br />___________________</li>
    <li>The longest running play is "Les Miserables"<br />___________________</li>
    <li>There is no blank under this question. <i>Answer beside this question instead.</i></li>
</ol>
CS6 DW output:
<p>These are true or false questions. Place your answer on the blank under each question.</p>
<ol>
    <li>There are twelve in a baker's dozen<br />___________________</li>
    <li>35% of people are going to school.</li>
    <li>There are seven books in the Harry Potter series.</li>
    <li>The longest running play is "Les Miserables"</li>
    <li>There is no blank under this question. <i>Answer beside this question instead.</i></li>
</ol>
Using your workaround (with 'Inside Tag' option set to li), this will not work as does not change any text at all.

Similar Messages

  • Win7, DW CS6, Find and Replace, Problem: The "Done or Found" message is cut off based on your SEARCH dropdown choice.

    The Find and Replace "Done or Found" message is partially cut off for "Search" dropdown choices "Source Code, Text, Text (Advanced), but not for "Specific Tag". It appears to be a programming bug sizing the "Find" and "Replace" text boxes too big for the "find and Replace" window. Has anyone else encountered this problem.

    Excuse me for resurrecting this, but I have been living with this same issue, and many more issues (I won't list them here), since migrating to CS5 (understood this thread is for CS6. However, my post is relevant none the less). If anyone has the fix I would love to know what they found. But sadly, I doubt there is one.
    My system and display settings are also Win7 at 100% display. When doing a Find and Replace I can barely see what the results are for how many occurrences in the find window because the bottom is cutting off half of the text, just like the OP screen shot above. If the results reads "Done. 2 items found" it can easily be mistaken for "Done. 3 items found" if I don't study it carefully because of the bottom half of the "2" is cut off.
    I don't want to rant here, but I will a little which I'll confess is the real purpose of my post. I am so disappointed in Adobe for so many different bugs in their software suite which they choose not to address, or even acknowledge as existing. I've had their tech support on the phone while they were recording my screen as I recreated issues for them, they never got back to me on any of them. I just got lip service how their engineers are looking into it and they'll get back to me. This of course was when CS5 still had free support under warranty.
    At this point I'm numb to it all and I'm stuck using their software because I'm used to it, which ultimately is their goal anyway I'm sure. You win Adobe.
    BTW...if anyone replies, please do not suggest the basic troubleshooting steps. All of the issues I've had exists after multiple re-installs on formatted hard drives and on both of my PCs made by two different manufacturers with different hardware specs (both exceeded min hardware requirements). Not to mention been through various techniques while on the phone with them..
    Ahh... I feel better now.

  • Dreamweaver site edit and upload not working

    I use dreamweaver to edit various websites on two different hosting sites. Since yesterday, I can't upload files to any of these websites. Dreamweaver is running normally when I edit pages in my local directories, but when I try to edit a site or upoad files, it runs very slowly.
    I am using windows 8 and Dreamweaver 8 which have worked perfectly together until yesterday.
    Any ideas?
    Since originally posting this, I have been able to upload files using a different laptop running Windows 7, so I am presuming that my issue relates to an update in windows 8?
    Message was edited by: Robhuk1

    I use dreamweaver to edit various websites on two different hosting sites. Since yesterday, I can't upload files to any of these websites. Dreamweaver is running normally when I edit pages in my local directories, but when I try to edit a site or upoad files, it runs very slowly.
    I am using windows 8 and Dreamweaver 8 which have worked perfectly together until yesterday.
    Any ideas?
    Since originally posting this, I have been able to upload files using a different laptop running Windows 7, so I am presuming that my issue relates to an update in windows 8?
    Message was edited by: Robhuk1

  • Help Viewer in Finder and iTunes not working properly

    When I click on any of the links in the Finder help viewer, nothing happens; if I type something in the search box, a list of topics display but if I click the show button for any of them, nothing happens. Same in iTunes. Looks like my help is screwed up with Apple apps. Any suggestions?
    Thanks
    Yvan

    Hi Danycom,
    Try this... locate these files: com.apple.help.plist and com.apple.helpviewer.plist and com.apple.recentitems.plist and
    There are located here:
    /Home/Library/Preferences. Open the Preferences folder, locate those files and drag them to the Trash. Empty the Trash and reboot. This fix should also correct your iTunes Help Viewer also. If this doesn't do the job, post back and we'll dig deeper!
    Carolyn

  • How do you find and replace "within selected text" in a textedit document (version 1.8, mountain lion)

    In the textedit version on Snow leopard it was possible to search and replace within a peice of selected text only i.e. not the entire file. This was a very useful feature because you could select a paragraph and replace all occurences of word1 with word2 within that paragraph only! This feature appears to be missing from the mountain lion version of textedit (version 1.8). Or can anyone tell me how to do it ... ?

    Having 46 people view a post without replying is not unusual. Some people look at a question to see if it's something they'd like to know the answer to, and then come back  when it has eventually been answered.
    I'm not sure if you need to escape forward slashes in Dreamweaver's Find and Replace dialog box, but I normally do because both JavaScript and PHP normally use forward slashes as delimiters to mark the beginning and end of the regex like this:
    var pattern = /[A-Z]{4}/; // JavaScript
    $pattern = '/[A-Z]{4}/';   // PHP
    When a forward slash appears inside the regex, you need to escape it with a backslash to avoid confusion with the closing delimiter.
    As you have worked out, a capturing group is created by wrapping part of the regex in parentheses.
    If you want to match exactly 38 characters, you can use [\S\s]{38}. That includes spaces, newline characters, symbols, everything.
    If you're trying to find everything between two tags, you can do this:
    (<\/tag_name>)([^<]+)
    The closing tag is captured as $1 and everything up to the next opening tag is captured as $2.
    Learning regular expressions is not easy. I don't claim to be an expert, but I enjoy the challenge of trying to solve them. If you're interested in regular expressions, there are several books published by O'Reilly. "Mastering Regular Expressions" is the ultimate authority, but it's a difficult read (not because it's badly written, but because of the complexity of the subject). "Regular Expressions Cookbook" is very good. There's also a new "Introducing Regular Expressions", but I haven't read it.

  • How to do this find and replace?

    I have been trying to figure out the regex for this find and replace (I thought it would be easy!), but my frustration is getting the better of me and any help would be greatly appreciated.  I'm trying to do two find and replaces:
    1) In the first, I'd like to find:
    </script>
    XXXX
    </head>
    where XXXX are always four letters (uppercase) and I want to store the four letters as a variable ($1) to use in the replace
    I'd like to replace this with a bunch of javascript and in the middle of the script, I'd place the variable referencing these four letters (<script type="text/javascript">var blah = new Spry.Data.XMLDataSet("http://$1.com"blahblah</script></head>
    2) The second find is similar:
    </html>
    XXXXXXXX
    where once again X are 8 letters in uppercase following the close of the html tag (this has resulted from previous find and replaces and now I'm trying to correct things)
    I simply want to delete these letters in this case (so will leave the replace blank).
    Any help is greatly appreciated!  Thank you

    Having 46 people view a post without replying is not unusual. Some people look at a question to see if it's something they'd like to know the answer to, and then come back  when it has eventually been answered.
    I'm not sure if you need to escape forward slashes in Dreamweaver's Find and Replace dialog box, but I normally do because both JavaScript and PHP normally use forward slashes as delimiters to mark the beginning and end of the regex like this:
    var pattern = /[A-Z]{4}/; // JavaScript
    $pattern = '/[A-Z]{4}/';   // PHP
    When a forward slash appears inside the regex, you need to escape it with a backslash to avoid confusion with the closing delimiter.
    As you have worked out, a capturing group is created by wrapping part of the regex in parentheses.
    If you want to match exactly 38 characters, you can use [\S\s]{38}. That includes spaces, newline characters, symbols, everything.
    If you're trying to find everything between two tags, you can do this:
    (<\/tag_name>)([^<]+)
    The closing tag is captured as $1 and everything up to the next opening tag is captured as $2.
    Learning regular expressions is not easy. I don't claim to be an expert, but I enjoy the challenge of trying to solve them. If you're interested in regular expressions, there are several books published by O'Reilly. "Mastering Regular Expressions" is the ultimate authority, but it's a difficult read (not because it's badly written, but because of the complexity of the subject). "Regular Expressions Cookbook" is very good. There's also a new "Introducing Regular Expressions", but I haven't read it.

  • How to find and replacing the path (url) given for data binding from type 'datasocket'

    Hi everyone,
    I'm sorry to pose this question as my own knowledge is still very limited.
    I have an assignment (bachelor level). We were asked to adjust a plc program in step7 so that multiple of an existing sequence could be run indepently.
    The settings for that sequence are controlled by labview. Sensor data is also viewed in labview.
    There is an existing labview VI that was made by someone else before us. It uses 'Datasocket' type for data binding. Because we would like to adjust this VI to be used with the other sequences, we would like to change the original path or URL quickly, as in a 'Find&Replace' solution. Yet the find and replace only works for objects or text, not entries in the properties.
    Can someone please tell me if there is a way to do is, without having to use shared variables, as we are not at all known with this type.
    Many thanks,
    Niels

    Dear Niels,
    Please find the attached example. I placed 5 controls on the front panel, all with a data socket URL (control 1 = URL1, control 2 = URL2 etc). Through property nodes I did the following;
    - I got a reference to the front panel
    - with this reference we can get an array of references to the controls on this front panel
    - one by one we will read the references and check the data socket URL from the control, we compare this with the URL we are searching
    - if found, stop we will use the reference to write a new URL to the control.
    Please notice the default values of the controls; it is set to search for URL3 and replace this with URL10, run the VI once and you will see that happening. I also included a sting indicator which will show you the label of the control which we find. Also a Boolean indicator in case we were not able to find the URL.
    I downsaved the VI to 8.6, I'm not sure in which version you are working, if you have 8.6 or higher you are able to open it. Hope this brings you further,
    Best regards,
    Martijn S
    Applications Engineer
    NI Netherlands
    Attachments:
    findURLexample.vi ‏12 KB

  • Find and replace Dreamweaver mx 2004 problem: not opening saved queries

    Dreamweaver mx 2004 is not opening saved queries! I use find and replace often and uses to save code replacements to reuse
    it. But now when I open the saved query I have 2 situations:
    1) comes completely blank
    2) or only shows truncated text or code in fields.
    I opened the dwr file in text editor and seems to be fine, I mean information saved is there.
    Tried recreating cache, or deleting caché, tried saving new or overwritting existant ones, tried saving into a completely different location,
    tried in other site definition. Nothing seems to work...

    Which FTP app did your predecessor use to upload files?  If it's still on your work station, it should contain the log-in credentials.
    You'll find a few utilities online for revealing passwords
    http://www.rixler.com/?gclid=CJeUxd775LkCFWZk7AodyiAAaQ
    Nancy O.

  • The Regular Expression anchors, "^" and "$" do not work for me in Dreamweaver

    I am using the Find and Replace feature of Dreamweaver 8 and especially the "Use Regular Expressions" setting.  But I have never been able to make the Regular Expression anchors "^" and "$" work at all.  This are supposed to fix a match at the beginning or ending of a line or input.  But if I search even something as elementary as "^ ", or " $", it can't seem to find them.
    Am I missing something?  Can somebody give me an example of this working?
    Any and all tips or clues would be appreciated.

    Welcome to Apple Discussions and Mac Computing
    Definitely an E-bay issue. The coding on the page is not Safari-friendly. Firefox, as you discovered, in this instance is the better choice.

  • Dreamweaver CC generates one of 3 error messages when using find and replace on Win 8.1 64 bit.

    Dreamweaver CC generates one of 3 error messages when using find and replace is used more than twice in succession. "While executing onLoad in bc_afterSave.htm, the following JavaScript error(s) occurred: At line 188 of file C:\Program Files (x86)\Adobe|Adobe DreamweaverCC|Configuration|Shared|BC\JS\bc_sites.js": out of memory"
    or
    While executing runCommand in File_Save.htm, a JavaScript erroroccurred.
    or
    While exciting getDynamicContent inAdressURL.htm, a Javascript erroroccirred.
    Any thoughts - I end up closing DWCC and reopening. Will work for two additional Find and Replace before the error messaged\s popup again.

    bkaufman43 wrote:
    Thanks Jon. I tried all of those solutions before posting. Same problem. It seems that the problem is tied to DWCC. Do not have the problem when using DW6 on Win8.1. When running DWCC on a Win7 pc, we get the same error message. When running DW6 on Win 7, f&c works fine. It seems to be a bug in DWCC. DWCC works flawlessly on our Macs.
    The same steps apply to DWCC, you just need to choose the CC folders rather than the DWCS4-6 versions that the page talks about. The layout of CC's folders hasn't changed from the older versions which is why, I think, Adobe hasn't updated the troubleshooting page as of yet.
    As Nancy mentions, a 38,500 page site is sort of ridiculously large for a static website, that could be part of the problem, but your response quoted above leads me to think you may have tried the troubleshooting steps in the wrong version of the program. Could you confirm that?

  • Dreamweaver cs3 international edition crashes while "Find and Replace"

    When i try to perform Find and Replace in Adobe Dreamweaver CS3
    the program halts and crashes everytime.
    aditional info:
    Adobe Dreamwever CS3
    international version (translated GUI)
    Version 9.0 Build 53
    Windows Vista
    Pentium Core2duo 2gb ram
    best wishes..
    ozgur z

    Mr David Powers thank you for your quick,
    sorry to say but
    the link did not work for me.
    i am so ashamed to use a program that crashes while doing a simple "search and replace" action! which i had paid more than 900$.
    and also it is so interesting that adobe has released new version CS4 instead of updating the buggy CS3. so the ppl who bought CS3 are dumped!
    here i attach the crash error dump file that Dreamweaver creates in its configuration directory.
    http://rapidshare.com/files/230314270/Dreamweaver_crash_log.mdmp
    i hope it helps to diagnose and SEARCH and REPLACE the BUG.
    best wishes
    o.z.
    edited by: OzgurZ (inserted the rapidshare link for the dump file)
    Message was edited by: OzgurZ - NOT answered yet.

  • Use VBA and Excel to open Dreamweaver HTML (CS5), find and replace text, save and close

    I wish to use VBA and Excel to programmatically open numbered Dreamweaver HTML (CS5) and find and replace text in the code view of these files, save and close them.
    I have  5000 associations between Find: x0001 and Replace: y0001 in an Excel sheet.
    I have the VBA written but do not know how to open, close and save the code view of the ####.html files. Please ... and thank you...
    [email protected]

    This is actually the code view of file ####.html that I wish to find and replace programmatically where #### is a four digit number cataloguing each painting.... In 1995 I thought this was clever... maybe not so clever now :>)) Thank you for whatever you can do Rob!
    !####.jpg!
    h2. "Name####"
    Oils on acrylic foundation commercial canvas - . xx X xx (inches) Started
    Back of the Painting In Progress </p> </body> </html>
    Warmest regards,
    Phil the Forecaster, http://philtheforecaster.blogspot.ca/ and http://phils-market.blogspot.ca/

  • How to edit the find-and-replace dialog in Dreamweaver 8

    For over 13 years I have been a happy user of Macromedia Dreamweaver 8. And I still see no reason to use any other program for editting PHP.
    However, 1 thing has been bugging me for years. In the find-and-replace dialog there is a select "Find in". The options are in a dropdown.
    I want this select to be a multiselector (not in functionality, but just so I don't need to click to get the dropdown, but just one click to select).
    I read in the help at 'Customizing the appearance of dialog boxes' at point 4
    On your disk, find the appropriate HTM file in the Configuration/Objects, Configuration/ Commands, or Configuration/Behaviors folder.
    I've been searching but can not find the code for that dialog, althou it should be easy. Also did a search for that 'save' image, because once I find that, I can find this form, but its not in the macromedia folder.
    how to edit the find-and-replace dialog in Dreamweaver 8?

    It's looks less like an image and more like a form drop list to me.
    Yes its a dropdown list. But to find the code for that select I tried to find the htm file that code is on by searching for the save-image which is also on that page (next to the yellow folder). I did a search on all folders in c:/programfiles/macromedia and that image is not in there. If I could find the image name, I could search the code for that and should find that htm (or javascript) which is outputting it, then the select must be near to that.
    I also searched the code for the various texts on the page and got many hits, but not from the dialog page. I can't search dll files, so maybe thats where that code is in.

  • Reformatting files in Dreamweaver: Batch series of .dwr files (find and replace) consecutively

    I have to do complicated reformatting of an entire site. It's been simplified to a series of find and replace tasks for each file. Each find and replace string has been saved as a .dwr file. Currently I have to load and execute each .dwr file.
    How do you batch process or automate this task in Dreamweaver? In other words, queue up a series of .dwr files to be executed consecutively?

    OK here we go.
    This example, a simple Dreamweaver  Command Extension, will execute two Find and Replace commands in one go. (It can be any number of Find and Replace commands.)
    The first command replaces "the" and "this" with "phe" and "phis". The second command replaces <ul> ... </ul> with <ol> ... </ol>. (These of course can be any Find and Replace.)
    You need two files: a HTML file (for the  UI) and a Javascript file (for actions). I named them "Find and Replace Test.html" and "Find and Replace Test.js". (They can be any name.)
    Find and Replace Test.html
    <!DOCTYPE HTML SYSTEM "-//Adobe//DWExtension layout-engine 10.0//dialog">
    <HTML>
    <HEAD>
    <Title>Find and Replace Test</Title>
    <script src="Find and Replace Test.js"></script>
    </HEAD>
    <BODY>
    <form>
         <p>Are you sure?</p>
    </form>
    </BODY>
    </HTML>
    Find and Replace Test.js
    function canAcceptCommand() {
        return true;
    function commandButtons() {
        return new Array("Go!", "doIt()", "Cancel", "window.close()");
    function doIt() {
        dreamweaver.setUpFindReplace({
            searchString: "th(e|is)",
            replaceString: "ph$1",
            searchWhat: "document",
            searchSource: true,
            useRegularExpressions: true
        dreamweaver.replaceAll();
        dreamweaver.setUpFindReplace({
            searchString: "<(/?)ul>",
            replaceString: "<$1ol>",
            searchWhat: "document",
            searchSource: true,
            useRegularExpressions: true
        dreamweaver.replaceAll();
        window.close();
    Basically you can call any number of this pair of functions in the script:
    dreamweaver.setUpFindReplace(findAndReplaceObject);
    dreamweaver.replaceAll();
    Place these HTML and JS files in this directory:
    Dreamweaver App Directory/Configuration/Commands/ 
    Then in Dreamweaver, open "Insert" window. (You need to have a HTML file open in order to make the Insert window active.) At the top of the Insert window there's a category dropdown menu  ("Common" etc.). Do alt + click (ctrl + click) - then you'll see an item "Reload Extenesions" at the bottom of the dropdown. This will load this extension to DW. (Alternatively you can restart DW to load the extension.)
    Now it's ready to run the Extension. Open a HTML document you want to modify. Go to "Commands" on the menu bar. At the bottom of the dropdown there should be an item "Find and Replace Test". Select and enjoy
    Notes
    This example is set to perform the Find and Replace on the current document. You can change the scope to the entire site, or the selected files, etc, just like in the Find and Replace dialogue box. The API doc is here: http://help.adobe.com/en_US/dreamweaver/cs/apiref/WS5b3ccc516d4fbf351e63e3d117f9e09bcf-7ed a.html
    You can use dreamweaver.setUpComplexFindReplace(xmlQueryString) command instead. xmlQueryString is basically <dwquery> ... </dwquery> in your .dwr files, you can copy from your .dwr files. However xmlQueryString needs to be one continuous string (no line breaks), which can be a pain The doc: http://help.adobe.com/en_US/dreamweaver/cs/apiref/WS5b3ccc516d4fbf351e63e3d117f9e09bcf-7ed 9.html
    Command Extension general example in the doc: http://help.adobe.com/en_US/dreamweaver/cs/extend/WS5b3ccc516d4fbf351e63e3d117f53d6ec3-7fe 6.html
    I hope all of these make sense...
    Kenneth Kawamoto
    http://www.materiaprima.co.uk/

  • Find and replace crashes Dreamweaver 5.5

    When trying to use find and replace dreamweaver always crashes. I've tried clearing the cache from instructions  of this link and it didn't work. http://forums.adobe.com/thread/494811
    Please help!

    Does the issue occured after you made any H/w or S/w changes on your MAC(may be after upgrading your OS)?
    If so, have you tried restoring dreamweaver's preferences? Follow the link below.
    http://helpx.adobe.com/dreamweaver/kb/restore-preferences-dreamweaver-cs4-cs5.html
    Make sure you backup all your current preferences if you need them again.

Maybe you are looking for