Bug in Multi-File Search and Replace in RH6?

I'm using the 6.0 trial, and one thing I want to be able to
do is to replace the variables I put in using JavaScript with the
new feature variables in 6.0. So, I went in to multi-file search
and replace, and searched for:
<script
language=JavaScript>document.write(varProduct)</script>
I copied this code directly from a topic, and pasted it into
the Search tool.
I don't even care whether I can successfully copy the code
from my new variable for use as the replacement text; I'd be happy
if the multi-file search would simply find all occurrences of my
original code so I don't miss any during conversion to 6.0.
It keeps coming up as not found, and this concerns me
greatly. Has anyone else experienced this? Is it a known bug? Does
anyone have a workaround?
Thanks!

Hi robowriter
I'm assuming you are using the wondrous little applet known
as Multi-File Find and Replace.
Unfortunately, this little beastie is like a cat. It
frequently has a fussy tummy and loves to hork up furballs. Well,
not exactly. Really what it does is fail to properly handle
anything with a line break. So you need a tool that does do this.
Fortunately, one exists! It is called FAR (Find And Replace). Oddly
enough, it was also written by a fellow Microsoft Help MVP named
Rob Chandler. (Rob lives in Australia)
You can download a trial version of FAR from the FAR page.
Click here to visit
the FAR page
Cheers... Rick

Similar Messages

  • Multi File Find and Replace FAR missing from tools

    I have RoboHelp x5.0.2 and I have always used Find and
    Replace at my previous employer. I have started with a new company
    and the RoboHelp FAR is missing from Tools. I know you can Add a
    tool if you know the path, but I have no idea where to look.
    Some background:
    We use Source Safe (VSS) to check our files in and out.
    I have verified that all of the files are NOT read-only.
    HELP!!!!

    Maybe you are mixing up something. RoboHelp includes a tool
    named Multi-File Find and Replace. This should indeed be situated
    on the Tools pane.
    There exists a tool called FAR, which, among other things,
    offers a similar functionality. FAR is shareware and
    not included in RoboHelp.
    Greetings
    ---Dirk Bock

  • Batch File Search and Replace a String

    I've written a batch file to handle the copying of files.  I'm trying to reduce the number of parameters that I pass to the batch file.
    I want the batch file to perform a string replace on the directory path that is passed as a parameter to the batch file.
    Here is how I run the batch file:
    COPY_FILE.BAT C:\DATA\FTP_DATA\ACME\IN      (I'm passing directory path "C:\DATA\FTP_DATA\ACME\IN" as parameter %1)
    So my batch file will copy a file to the directory path represented by parameter %1.
    But then I want the file copied to a second directory.  I want the batch file to replace string "FTP_DATA" in the directory path with string "FTP_DATA\ARCHIVE"
    I know I could pass this path as a second parameter, but I want to limit the number of parameters so figured I could have the batch file perform a search and replace on string "FTP_DATA".
    After searching the internet, I thought I found the answer by using the following command in the batch file:
    set ARCHIVE_PATH=%1:FTP_DATA=FTP_DATA\ARCHIVE
    But it doesn't perform a search and replace.  It just appends to the directory path with the following result:
    C:\DATA\FTP_DATA\ACME\IN:FTP_DATA=FTP_DATA\ARCHIVE
    What I want is the this:
    C:\DATA\FTP_DATA\ARCHIVE\ACME\IN
    Any suggestions?

    Your syntax is not correct. Example:
    @echo off
    setlocal enableextensions
    set ARCHIVE_PATH=C:\DATA\FTP_DATA\ACME\IN
    echo %ARCHIVE_PATH%
    set ARCHIVE_PATH=%ARCHIVE_PATH:FTP_DATA=FTP_DATA\ARCHIVE%
    echo %ARCHIVE_PATH%
    endlocal
    -- Bill Stewart [Bill_Stewart]

  • Multiple file search and replace

    Does anyone know if it is possible to do search / replaces in script, text etc over multiple files?  If not, is there any 3rd party software available to do it?
    I have hundreds of files I have to make the same change in and just wanted to find out before I have to do the mind-numbing process of going through them all.
    Any help will be greatly appreciated!

    Depending upon what type of files and what kind of changes you need to make, sure you can. You can do a google search for 'binary search and replace'; here's one of the first results, which searches for and replaces strings in multiple text and/or binary files:
    http://gnuwin32.sourceforge.net/packages/gsar.htm

  • Changing the editor for Multi-File Find and Replace

    When I click edit on a file it opens it up inside Word. Anyway to get this tool to open the topic inside RH? Or inside another text editor like Notepad++? I don't trust Word to leave my code like I want it.
    Thanks in advance,
    Jared
    RH 7 (latest patches) authoring in RoboHTML
    Win 7 64-bit machine

    I just thought I would resurrect this thread, because I am encountering the same issue, except for me the Edit button just opens the topic IE.  As such, the only way to edit the topic is to right-click and choose View Source, then do another Find to get to the bit I wanted to edit, which is a bit of a faff.
    I'm running Windows 7 64-bit with IE9 and RH8.  As well as the suggestions made here, I have tried changing IE's HTML editor from the developer window (as described here), which works for IE itself, but not RH.  I've also tried editing the Registry and adding the path to Notepad++ to HKEY_CLASSES_ROOT\.htm\OpenWithList\Notepad++.exe\Shell\edit\command.  Again, this makes no difference, which leads me to think there is no association between IE9 and RH8. 
    The twist for me is last time I used this tool I'm sure it worked, but it has been a while and I cannot remember what other software changes have taken place that could affect RH.
    Regards
    Matt

  • Changing links? Multi-file find-and-replace?

    So Dw has some sort of global link change tool, doesn't it? If I want to change "assets/video/banner.gif" to "assets/animation/banner.gif" everywhere it occurs in all of my local files -- how would I do that? Thanks!

    iaufgp wrote:
    So Dw has some sort of global link change tool, doesn't it?
    Site > Change Link Sitewide.

  • Alternate Search and Replace Tool

    I need to automatically search a piece of HTML code in
    hundreds of help topics. Unfortunately, since RoboHelp's
    "Multi-File Find and Replace" tool doesn't accept carriage returns,
    it won't accept the three-line string of HTML I need to replace.
    Can anyone suggest a (hopefully free) third-party
    search-and-replace tool that won't break RoboHelp in some way? I'm
    a bit worried because I'll be pasting a ton of conditional text
    markers.

    Hi, Adam,
    Two find-and-replace tools that are often mentioned in these
    forums are FAR and BK ReplaceEM. FAR is shareware, but free to use
    for the first two months; BK ReplaceEM is freeware.
    http://www.helpware.net/FAR/index.html
    http://www.snapfiles.com/get/bkreplace.html
    Pete

  • Search and Replace in Dreamweaver

    Dreamweaver CS3has a nice search and replace tool allowing for search and replacement of very large text strings.
    Does anyone know of a good notepad editor that can handle that large of replace text strings.
    Seems like most cant handle that much code in terms of search and replace.
    thanks

    If you're looking for something free/cheap that handles multi-line search and replace in source code, then there's always TextWranger if you're on a Mac:
    http://www.barebones.com/products/TextWrangler/
    There are plenty of Windows equivalents, but none I've used extensively and could recommend. This one is free:
    http://www.htmlkit.com/
    ...and has a button to expand the find/replace fields for multi-line content.
    That being said, they're not really going to do anything DW can't if you're already using DW.

  • Search and replace strings in a file while ignoring substrings

    Hi:
    I have a java program that searches and replaces strings in a file. It makes a new copy of the file, searches for a string in the copy, replaces the string and renames the new copy to the original file, thereafter deleting the copy.
    Now searching for "abcd", for eg works fine, but searching for "Topabcd" and replacing it doesnot work because there is a match for "abcd" in a different search scenario. How can I modify the code such that if "abcd" is already searched and replaced then it should not be searched for again or rather search for "abcd" as entire string and not if its a substring of another string.
    In the below code output, all instances of "abcd" and the ones of "Topabcd" are replaced by ABCDEFG and TopABCDEF respectively, whereas according to the desired output, "abcd" should be replaced by ABCDEFG and "Topabcd" should be replaced by REPLACEMEFIRST.
    try
              String find_productstring = "abcd";
              String replacement_productstring = "ABCDEFG";
              compsXml = new FileReader(compsLoc);
              compsConfigFile = new BufferedReader(compsXml);
              File compsFile =new File("file.xml");
              File compsNewFile =new File("file1.xml");
              BufferedWriter out =new BufferedWriter(new FileWriter("file1.xml"));
              while ((compsLine = compsConfigFile.readLine()) != null)
                    new_compsLine =compsLine.replaceFirst(find_productstring, replacement_productstring);
                    out.write(new_compsLine);
                    out.write("\n");
                out.close();
                compsConfigFile.close();
                compsFile.delete();
                compsNewFile.renameTo(compsFile);
            catch (IOException e)
            //since "Topabcd" contains "abcd", which is the search above and hence the string "Topabcd" is not replaced correctly
             try
                   String find_producttopstring = "Topabcd";
                   String replacement_producttopstring = "REPLACEMEFIRST";
                   compsXml = new FileReader(compsLoc);
                   compsConfigFile = new BufferedReader(compsXml);
                   File compsFile =new File("file.xml");
                   File compsNewFile =new File("file1.xml");
                   BufferedWriter out =new BufferedWriter(new FileWriter("file1.xml"));
                   while ((compsLine = compsConfigFile.readLine()) != null)
                         new_compsLine =compsLine.replaceFirst(find_producttopstring, replacement_producttopstring);
                         out.write(new_compsLine);
                         out.write("\n");
                     out.close();
                     compsConfigFile.close();
                     compsFile.delete();
                     compsNewFile.renameTo(compsFile);
                 catch (IOException e)
            }Thanks a lot!

    Hi:
    I have a java program that searches and replaces
    strings in a file. It makes a new copy of the file,
    searches for a string in the copy, replaces the
    string and renames the new copy to the original file,
    thereafter deleting the copy.
    Now searching for "abcd", for eg works fine, but
    searching for "Topabcd" and replacing it doesnot work
    because there is a match for "abcd" in a different
    search scenario. How can I modify the code such that
    if "abcd" is already searched and replaced then it
    should not be searched for again or rather search for
    "abcd" as entire string and not if its a substring of
    another string.
    In the below code output, all instances of "abcd" and
    the ones of "Topabcd" are replaced by ABCDEFG and
    TopABCDEF respectively, whereas according to the
    desired output, "abcd" should be replaced by ABCDEFG
    and "Topabcd" should be replaced by REPLACEMEFIRST.
    try
    String find_productstring = "abcd";
    String replacement_productstring = "ABCDEFG";
    compsXml = new FileReader(compsLoc);
    compsConfigFile = new
    BufferedReader(compsXml);
    File compsFile =new File("file.xml");
    File compsNewFile =new File("file1.xml");
    BufferedWriter out =new BufferedWriter(new
    FileWriter("file1.xml"));
    while ((compsLine =
    compsConfigFile.readLine()) != null)
    new_compsLine
    =compsLine.replaceFirst(find_productstring,
    replacement_productstring);
    out.write(new_compsLine);
    out.write("\n");
    out.close();
    compsConfigFile.close();
    compsFile.delete();
    compsNewFile.renameTo(compsFile);
    catch (IOException e)
    //since "Topabcd" contains "abcd", which is
    the search above and hence the string "Topabcd" is
    not replaced correctly
    try
                   String find_producttopstring = "Topabcd";
    String replacement_producttopstring =
    topstring = "REPLACEMEFIRST";
                   compsXml = new FileReader(compsLoc);
    compsConfigFile = new
    gFile = new BufferedReader(compsXml);
                   File compsFile =new File("file.xml");
                   File compsNewFile =new File("file1.xml");
    BufferedWriter out =new BufferedWriter(new
    dWriter(new FileWriter("file1.xml"));
    while ((compsLine =
    compsLine = compsConfigFile.readLine()) != null)
    new_compsLine
    new_compsLine
    =compsLine.replaceFirst(find_producttopstring,
    replacement_producttopstring);
    out.write(new_compsLine);
    out.write("\n");
    out.close();
    compsConfigFile.close();
    compsFile.delete();
    compsNewFile.renameTo(compsFile);
                 catch (IOException e)
    Thanks a lot!I tried the matches(...) method but it doesnt seem to work.
    while ((compsLine = compsConfigFile.readLine()) != null)
    if(compsLine.matches(find_productstring))
         System.out.println("Exact match is found for abcd");
         new_compsLine =compsLine.replaceFirst(find_productstring, replacement_productstring);
    out.write(new_compsLine);
    out.write("\n");
         else
         System.out.println("Exact match is not found for abcd");
         out.write(compsLine);
         out.write("\n");

  • How to search and replace in an xml file using java

    Hi all,
    I am new to java and Xml Programming.
    I have to search and replace a value Suresh with some other name in the below xml file.
    Any help of code in java it is of great help,and its very urgent.
    I am using java swings for generating two text boxes and a button but i am not able to search in the xml file thru the values that are entered into these text boxes.
    Thanks in advance.
    **XML File*
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <student>
    <stud_name>Suresh</stud_name>
    <stud_age>40</stud_age>
    </student>Also i am using SAX Parser in the java program
    any help of code or any tutorials for sax parisng is very urgent please help me to resolve this problem
    Edited by: Karthik84 on Aug 19, 2008 1:45 AM
    Edited by: Karthik84 on Aug 19, 2008 3:15 AM

    Using XPath to locate the elements you are after is very easy.
    Try something like this:
    import java.io.File;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.dom.DOMSource;
    import javax.xml.transform.stream.StreamResult;
    import javax.xml.xpath.XPath;
    import javax.xml.xpath.XPathConstants;
    import javax.xml.xpath.XPathFactory;
    import org.w3c.dom.Document;
    import org.w3c.dom.NodeList;
    import org.xml.sax.InputSource;
    public class BasicXMLReplaceWithDOM4J {
         static String inputFile = "C:/student.xml";
         static String outputFile = "C:/studentRenamed.xml";
         public static void main(String[] args) throws Exception {
              // Read xml and build a DOM document
              Document doc = DocumentBuilderFactory.newInstance()
                        .newDocumentBuilder().parse(new InputSource(inputFile));
              // Use XPath to find all nodes where student is named 'Suresh'
              XPath xpath = XPathFactory.newInstance().newXPath();
              NodeList nodes = (NodeList)xpath
                   .evaluate("//stud_name[text()='Suresh']", doc, XPathConstants.NODESET);
              // Rename these nodes
              for (int idx = 0; idx < nodes.getLength(); idx++) {
                   nodes.item(idx).setTextContent("Suresh-Renamed");
              // Write the DOM document to the file
              Transformer xformer = TransformerFactory.newInstance().newTransformer();
              xformer.transform(new DOMSource(doc), new StreamResult(new File(outputFile)));
    }- Roy

  • Can i search and replace in the itunes library database file?

    Hi --
    I need to update the file location in the itunes database for a few thousand songs. These songs are just part of my full collection. A few hundred of these songs are referenced in playlists. Rebuilding the libarary, consolidating the library, adding the new folder to library -- none of these suggested solutions to similar problems will work for me. (My collection is too large for one drive and is spread over several drives, and I have many playlists with hundreds of songs, and the playlists would be ruined with any of these approaches.)
    I thought I had an easy solution by doing a search and replace in "itunes library.xml," replacing the old file path with the new one. But then I learned (as you probably already know) that the real information is stored in "itunes library," and the xml file is just a downstream copy of that information. All my edits were overwritten as soon as I opened itunes.
    The solution to my problem is completely straight-forward if I can just do a search and replace in "itunes libray." Is it possible to edit that file directly? The only database program I have is MS Access, on windows, and it couldn't open the file.
    Thanks very much
    - Mark

    How to Move Your Music to a New Computer.

  • Search and replace in Muse files

    I have a lot of links to my own files  in a given web page.
    I will be relocating the files and want to know if I can run a search and replace the links with their new urls  on the Muse files
    I do not want to be manually replacing each link using the Muse add link button. That will take forever.
    I will be using a separate search and replace program not anything within Muse
    Clear?

    Hi J KIrby,
    You have the option of 'Find and Replace' in Muse under 'Edit' menu option.
    Also, please refer to our release notes page to see what other features have been added to muse in the last update - Release notes | Adobe Muse CC
    - Abhishek Maurya

  • RH 11: Search and replace in files: options are grayed out

    Hello to all,
    just wanted to replace a string in my RH Project. Using the Dialog "search and replace in files", the Option "ignore HTML-Tags" is grayed out.
    Even if i create a new, empty Project: the same Problem.
    Is this Option generally not available in RH11 or what is the Trigger to gray the Option out?
    Sorry if I dont hit the English terminology used in RH, I'm using the German Version...
    Regards,
    Julian

    Hi Julian. This sounds like you have the Advanced options displayed. try going back to the Basic options by clicking the double arrow icon in the top right hand corner:

  • Global search and replace on large-scale multi-user sites

    Is there a way for Dreamweaver to select only the files that
    are found when using the find and replace facility? This would make
    updating large websites a lot easier.
    From time to time I need to perform small changes to text or
    code (that obviously is not contained in an include file or library
    item) sitewide. As the site is administered by multiple users, it
    uses the check-in/check-out system, which means that before editing
    a file, it needs to be checked out. Thus, we can't just use search
    and replace directly, we have to check out the relevant files
    before performing the replace routine. The problem is selecting
    only those files which will be affected by the search and replace
    (and perform the operation in minutes) rather than selecting
    everything (and spending hours).
    Since it seems one is unable to select only files that appear
    in the search results, I have to manually identify the folder that
    holds the files with the results, and then check it out. As the
    files which need to be edited might be scattered around the whole
    site, this often means that I have to check out whole folders close
    to the site root. The check-out command will include everything in
    a folder, and the site contains thousands of files (which has to be
    checked back in afterwards), so obviously this is a heavy and
    time-consuming operation.
    Does anyone know if DW has a way of selecting only the
    relevant documents, or have suggestions for other ways of doing
    this? I get the feeling that this is most easily achievable by
    using tools outside DW, but I hesitate to go outside DW since it
    would interfere with DW's site managment system.

    I don't think you will find anyone here with such experience,
    not the least
    reason being that Library items run out of useful steam at
    about 100 pages.
    To use them on larger sites is just too tedious and risky,
    honestly. Is
    there any possibility to change to server-side includes?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "lochnessmoose" <[email protected]> wrote in
    message
    news:gb5ua7$a2t$[email protected]..
    > Is there really noone here with experience with this
    problem?
    >
    > The same problem applies to editing library items. I
    need to update a
    > library
    > item that will affect 200+ files (on a website that has
    thousands). Being
    > able
    > to select only those 200 for check out before editing
    would be a lot
    > easier
    > than having to check out the entire 500 MB site....
    >

  • Using a variable in a Powershell search and replace string

    Hi
    a couple of days ago I posted a question about doing a search and replace with wildcards
    Search and repalce with Widcards
    I got a swift and very helpful answer but now I need to build on it.
    In a text file I wanted to replace all the text between two defined words.  the script I got was this
    $text = 'Some Server this bit of text varies Language stuff'
    $text -replace '(.*Server) .+? (Language.*)','$1 it will always say this $2'
    It works great but now I want to replace "it will always say this" with a variable and I can't figure out the correct grammar to make this happen.
    Can anyone help??
    Thanks
    Alex

    Here's one way:
    $replace = 'it will aways say this'if ( $text -match '(.*Server) .+? (Language.*)' )
    { "{0} $Replace {1}" -f $matches[1,2] }
    else { $text }
    [string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "

Maybe you are looking for

  • (URGENT) Check if fields in Interactive Form is empty before submit.

    Hi all, I need to validate my form to make sure that when a user clicks on the submit button, it should check if all the fields are being filled up, if fields are left empty, a message/error should promt telling the user to fill up the form before su

  • SD reporting

    My client is consolidating all SD reporting into one instance What measures should be taken care of?What kind of work a security consultant can expect to do? Thanks

  • Regarding Doc, for a New Implementation

    Hello, Will you  pl, help me in getting complete documentation (Std / Template)for all stages of ASAP methodology, for a new module. If you provide at least URL, it will be of great help.

  • Camera Raw et fichiers nef Nikon D 610

    J'utilise CS5 et caméra raw n'arrive pas à ouvrir les fichiers nef de mon nouveau nikon D610. Que faire???

  • Sync photos and deleting individualy

    Hi Synced some photos manually from my laptop - so far so good. If I want to delete any I have to sync again, this time deleting from the ones I want to sync as unable to do this while browsing. Question is, if I were to put them on there via a memor