Search and replace in files

Behavior of the interrogator:

I learned to click Save (or save everything) before attempting to search and replace in files: somehow the HR application can't handle "the currently open section" and I repeatedly got stuck in an infinite loop of the contextual dialog "this file has been modified outside the multi-fichiers (sic, old term) find and replace.» You want to reload the file? "- and it does not matter whether I click Yes (or maybe that's not serious, but I don't know the terms of Yes and no).

It's frustrating, especially when he's stuck on a single file. After dozens of clicks. I get a popup of RoboHelp HTML (with a red ringed X) which States that "the parameter is incorrect.

Second, maybe it's my imagination, but there was to be a rocking this user activated (de) select all... and this ability seems to be lost: if I want to limit my edit 'multifile' to tell the 3 files, I need to manually disable all other 500 topics that I don't want to change. Sorry, but I don't have a folder structure that allows me to limit my search in a folder... and reorganize the existing entries will destroy... the table of contents, the see also of hyperlinks, etc.

Thirdly, the ability to drag the subjects of the list of topics in the current page to create a hypertext link seems to have disappeared. Maybe I dream here, as well, because the list of topics and the current page were not visible at the same time (in a previous version of HR); However, I have to are used to the click and drag the ability for the creation of hypertext links to other topics and I don't understand why it works in some cases (list of projects, TOC) but does not work for the list of topics.

This is perhaps a few referrals, or maybe someone knows some tips of use that I am not aware... Can anyone offer insight?

Hello

To avoid the message about the file being modified, close everything in the editor before you start find and replace operations. The message is produced because you have the aforementioned subjects to open in the editor.

As you mention "search and replace in files", I assume you are referring to version 8. I just opened version 8 and carried out a search and replace to confirm. There is a button allowing you to cancel all.

By clicking and dragging to create a link, it never worked that way. You can just drag from the pod to the list of topics to do. But you can leave the pod project manager. Perhaps you should consider submitting a form wishes to request the ability to drag and drop the pod of the list of subjects to create links.

As far as rearrange your subjects in different folders, as long as you do from within RoboHelp you shouldn't be destroying all the links. RoboHelp updates the references for you when you move things. The only question is if you automatically create the structure of your table of contents based on the structure of the project. But usually it's a one time shot. From there to the front, you just handle things by using the table of contents Editor.

Hope this helps... Rick

Useful and practical links

Tags: Adobe

Similar Questions

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

    Hi all

    I wanted to just replace a string in my HR project. Using the "Find and replace in files" dialog box, the Option "ignore HTML tags" is gray.

    Even if I create a new empty project: the same problem.

    Is this Option is generally not available in RH11 or what is the trigger for the Option out of gray?

    Sorry if I don't hit the English terminology in HR, I use the German Version...

    Kind regards

    Julian

    Hi Julian. It sounds like you have the advanced options are displayed. try going back to the basic options by clicking on the double arrow icon in the upper right:

  • File save to preserve search and replace queries when reinstalling?

    I need to uninstall and reinstall CS6. I have a large number in search and replace queries that would be extremely difficult to redefine. How do I save these as well as other features such as the areas of work or Actions in PhotoShop?

    Your saved queries find/replace are in a folder in your library to the user or the user's profile (depending on your operating system). You can find the path to where they are stored in the information provided for the InDesign Defaults file to replace your preferences. The folder queries saved is in the same folder as the InDesign Defaults file. Note that this is a HIDDEN on all recent operating systems folder.

    There was also a case of workspaces in the same place for ID. Similar records should be found for other programs under their respective application folders to the same location of the user's library/profile.

  • Reformatting of files in Dreamweaver: series of files (search and replace) .dwr batch consecutively

    I have to do a reformat complicated of an entire site. It is simplified to a series of search and replace tasks for each file. Each search and replace string was recorded in a .dwr file. Currently, I load and run each .dwr file.

    How batch or automate this task in Dreamweaver? In other words, a series of files .dwr to consecutively run the tail?

    OK, here we go.

    This example, a simple command of Dreamweaver Extension, run two find and replace commands in a go. (It can be any number of commands find and replace).

    The first command replaces 'the' and 'this' "phe" and "phis". The second paragraph command replaces

      ...
      ...
    . (These can of course be all find and replace.)

    You need two files: an HTML file (for the UI) and a Javascript file (for actions). I named the 'Find and replace Test.html' and 'find and replace Test.js. (They can be any name).

    Find and replace the file Test.html

    
    
    
    Find and Replace Test
    
    
    
     

    Are you sure?

    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 JS and HTML files in this directory:

    Application Dreamweaver/Configuration/Commands Directory.

    Then in Dreamweaver, open the window "insert." (You need to open an HTML file in order to make the active insertion window.) Above the insertion window, there is a drop down category ("Common" etc.). Do alt + click (ctrl + click) - then you'll see a 'Reload Extenesions' element at the bottom of the drop-down list. This will load this extension of DW. (Alternatively, you can restart DW to load the extension.)

    It is now ready to run the Extension. Open an HTML document that you want to change. Go to the 'orders' in the menu bar. At the bottom of the drop-down list, there is an article "find and replace Test." Select and enjoy

    Notes

    General ordering example Extension in the doc: http://help.adobe.com/en_US/dreamweaver/cs/extend/WS5b3ccc516d4fbf351e63e3d117f53d6ec3-7fe 6 html

    I hope that all these wise...

    --

    Kenneth Kawamoto

    http://www.materiaprima.co.UK/

  • Ideas: I get the 0x80073AFC error code when I try to use the system restore then, how can I find and replace this file missing MUI?

    Remember - this is a public forum so never post private information such as numbers of mail or telephone!

    Ideas: I get the 0x80073AFC error code when I try to use the system restore then, how can I find and replace this file missing MUI?

    • I am running Windows 7 for packs SP 1 or SP 2 does NOT solve my problem since neither one works with Windows 7.  Is there a way to search for this MUI (Multiple User Interface) missing file? The every thing must have himself installed in the first place. I took my mom (she died in June) and my brother on this PC as users so even if they do not use this PC supports multiple users. Maybe if I deleted as a reboot and additional users it will solve my problems. My updates install OK but I can't run at all system restore. It creates a restoration point OK but when I try to sr back to a restore point before I get the error 0x80073AFC topic of the missing MUI file. Then, when I spear SR it is said that he could not and no files have been changed because of the error 0x8000FFFF error, unspecified catastrophic failure and could not retrieve the file several times when system restore is attempted.

      I'm running Windows 7 on a HP Pavilion with browser Firefox 3.6.8 browser Opera 10.60, IE8 and Google Chrome 5.0.375.125 browser browser.

      Can you tell me what I try next? Thnks a lot and sayonara for now the guy-Jack McElwee / keimanzero the Scion of the Anime in Brookhaven PA - USA

      OK I tried everything and nothing works! Only added beginners are updated browser Opera 10.63; IE9 (Beta); Firefox 3.6.12 and Google Chrome 7.0.517.41 and Java 22. Of course like everyone else in the world, I had to uninstall/enable and disable/download again and reinstall new Adobe Flash 10 and 11 of the shock wave and they keep crashing too! Hello 4 keep screwing browsers and now I get connection network problems. I run Comcast doctor and did everything it said to do, but nothing works. Oh and I added 7-Zip and WinZip also. Likewise, they will not work! Help! Thanks - K & K

    keimanzero,

    Comcast of Norton Security Suite version is installed? If Yes, who and perhaps malware is most likely to cause questions you have published, in particular the failure of the restoration of the system.
    First, configure the system to boot - How to solve a problem by performing a boot in Windows Vista or in Windows 7
    NOTE: Start-up mode minimum state all the 3rd party firewalls will be disabled. Open Control Panel > Windows Firewall to make sure that the native firewall of Windows 7 is now on.

    Download and Save the update system (or CheckSUR) tool. You will need to download the specific Version of CheckSUR corresponding to the architecture of the system to Windows 7. If you do not know the architecture of the system, and then click the link that says "Click here to show or hide the instructions step by step with images" under method 2: download the update directly system preparation tool from Microsoft Download Center .
    Description of the preparation tool system update for Windows Vista for Windows Server 2008, for Windows 7 and for Windows Server 2008 R2

    Once the download is complete, close all open programs and browsers. Now, run CheckSUR with the system connected to the internet because it will download the .cab for system files. Reboot once CheckSUR is complete.

    Secondly, I suggest that you run the File Checker system while in the same clean boot state.
    To run the System File Checker tool, follow these steps:

    1. Click Start and type cmd in the field search programs and files .
    2. Right click on cmd.exe in the programs of list, and then choose 'run as administrator '.
      If you are prompted for an administrator password or a confirmation, type your password or click on continue.
    3. At the command prompt, enter the following line exactly as written including the space between thec and the/and then press ENTER:
      sfc/scannow

    When the analysis is complete, test to see if the problems facing the system have been resolved.

    If they are not, you will need to contact Norton support for the version of Norton Internet Security Comcast to get help, or just uninstall NIS, run the Norton removal tool (right click Norton_Removal_Tool.exe, choose "Run as Administrator"), reboot and then check to see if the problems are still occurring.

    Expert MowGreen Windows IT Pro - consumer safety

  • Find and replace multiple files Script

    I'm trying to find a script that either will open a selection of files .ai or browse all open in illustrator files and perform a search and replace. Right now I have a script that runs find and replace, but I must run on each document instead of all my files.

    var openDocument = app.documents.item(0);
      
    var search_string = /001D/gi; // g for global search, remove i to make a case sensitive search  
    var replace_string = '001E';  
      
    var text_frames = active_doc.textFrames;  
      
    if (text_frames.length > 0)  
    {  
        for (var i = 0 ; i < text_frames.length; i++)  
          {  
              var this_text_frame = text_frames[i];  
               var new_string = this_text_frame.contents.replace(search_string, replace_string);  
                 
               if (new_string != this_text_frame.contents)  
                   {  
                        this_text_frame.contents = new_string;  
                   }  
          }  
    }
    

    Thanks for any help.

    Oh, my bad, I gave bad advice, sticky code pixxxel in my code in a re-definition results from the 'I' counter.

    Vinicius is corrent.

    Here's my update:

    function FindAndReplaceScript_AllOpenDocuments(){
        for(var i=app.documents.length -1; i > -1;  i--){
            app.documents[i].activate();
            var aDoc = app.documents[i];
    
            var searchString = /001D/gi;
            var replaceString = '001E';     
    
            var theTF = aDoc.textFrames;
            if (theTF.length > 0) {
                for (var j = 0 ; j 		   
  • GREP: date/time search and replace

    Hello world

    I frequently import XML files into InDesign. The XML structure always contains the following, among others:

    start date

    start time

    end date

    end time

    For example, it looks like this:

    21.08.2013

    09:00

    25.08.2013

    18:00

    Now, I need to reorder these fields in a single line, like this:

    21.08.2013, 25.08.2013, 09:00-18:00

    I already found a way to do it through GREP, but I need to go one step further:

    If the "start date" and "end date" is the same (for example, both are "21.08.2013"), I would like to move the "end date" in the output. It should look like this:

    21.08.2013, 09:00 - 18:00

    Is it possible to do it through GREP?

    Thanks in advance!

    This will do

    Trevor

    // By Trevor http://forums.adobe.com/thread/1261365?tstart=0
    app.doScript("formatDates ()", ScriptLanguage.javascript, undefined, UndoModes.ENTIRE_SCRIPT, "GREP: date/time search and replace");
    function formatDates ()
        {
            app.findGrepPreferences = app.changeGrepPreferences = null;
            app.findGrepPreferences.findWhat = "\\d\\d\.\\d\\d\.\\d\\d\\d\\d\r\\d\\d:\\d\\d\r\\d\\d\.\\d\\d\.\\d\\d\\d\\d\r(?=\\d\\d:\\d\\d\r)";
            var doc = app.activeDocument,
                  dateFinds = doc.findGrep(),
                  l = dateFinds.length, dates;
            while (l--)
                {
                    app.findGrepPreferences.findWhat = "(\\d\\d\.\\d\\d\.\\d\\d\\d\\d)";
                    dates = dateFinds[l].findGrep();
                    app.findGrepPreferences.findWhat = "(\\d\\d\.\\d\\d\.\\d\\d\\d\\d)\r(\\d\\d:\\d\\d)\r(\\d\\d\.\\d\\d\.\\d\\d\\d\\d)\r";
                    if (dates[0].contents == dates[1].contents) app.changeGrepPreferences.changeTo = "$1 $2 - ";
                    else app.changeGrepPreferences.changeTo = "$1 $2 - $3 ";
                    dateFinds[l].changeGrep();
                }
        }
    
  • Try to find the queries of search and replace

    OK, I thought I knew where it was.  I looked at

    C:\Users\phyllis\AppData\Local\Adobe\InDesign\Version 6.0\en_US\Caches
    He has here called FindChangeData and FindChangeDataTmp files, but write them in the folder for the Version 7.5 does nothing.

    So I think I'm looking in the wrong place.  I'm moving all the queries search and replace in InDesign CS 5.5.  Can someone point me to them?

    Thank you, Phyllis

    Try C:\Users\\AppData\Roaming\Adobe\InDesign\------------.

  • Multiple search and replace missing.

    I had a search on the forums and cannot find a similar thread so forgive me if this is already there or there's a blinding problem.

    I recently installed RH8 and am in the process of upgrading our current 20 or so other authors to RH8 of RH5. However, I was unable to find multi-fichiers find and replace tool. I opened the box pod tool, and there is a list of tools, neither of which is the multi file find and replace.

    I know there are other search and replace tools/software out there but our platform is variable with air and it's a real pain to downloaded software.

    So my question is should be there the old find multi-fichiers and replace in the Toolbox pod and if it should be there, how can I get it?

    I re-installed RH8 etc to see if it was a problem, but it made no difference.

    It's just an executable file. OK, you will need to ensure it has been installed on each PC RH8 but then you could just add to your Toolbox pod while it was still available because he was with RHX5. Just a thought.

  • Advanced search and replace. How to replace the space with carriage return?

    10.9.13.0/24, 10.9.4.2/32, 10.9.4.3/32

    in

    10.9.13.0/24
    10.9.4.2/32
    10.9.4.3/32

    Find replace them ',' with carriage return.

    I still find articles on an advanced search and replace, but I can't seem to locate it.

    OS X El Capitan 10.11.3

    3.6.1 the numbers

    HI Brendan,

    You don't need an advanced find and replace for it.

    In the search box, press, then space.

    In the box replace by, press option-return.

    Then click Find and replace and find until you are finished.

    Kind regards

    Barry

  • I can't seem to make the "search and replace string" works as expected.

    I tried to replace "^ []] +---+ ([^] +).» "$*" with $1 in "create table leq_octave_5min (recorded_time DATETIME CONSTRAINT pk1 PRIMARY KEY, leq5m leq5m of FLOAT CONSTRAINT NOT NULL, min min FLOAT CONSTRAINT NOT NULL, max max FLOAT CONSTRAINT NOT NULL, CONSTRAINT of FLOAT L05 05 NOT NULL, CONSTRAINT of FLOAT L10 10 NOT NULL, L50 FLOAT CONSTRAINT 50 NOT NULL, L90 FLOAT 90 CONSTRAINT NOT NULL. L95 FLOTTER CONSTRAINT 95 NON NULL, us01 us01 FLOAT CONSTRAINT NOT NULL, EN02 EN02 FLOTTER CONSTRAINT NOT NULL, fr03 FR03 FLOTTER CONSTRAINT NOT NULL, fr04 FR04 FLOTTER CONSTRAINT NOT NULL, fr05 FR05 FLOTTER CONSTRAINT NOT NULL, fr06 FR06 FLOTTER CONSTRAINT NOT NULL, fr07 FR07 FLOTTER CONSTRAINT NOT NULL, fr08 FR08 FLOTTER CONSTRAINT NOT NULL, fr09 FR09 FLOTTER CONSTRAINT NOT NULL, fr10 FR10 FLOTTER CONSTRAINT NOT NULL Fr11 FR11 FLOTTER CONSTRAINT NOT NULL, FR12 FLOTTER CONSTRAINT NOT NULL fr12, fr13 FR13 FLOTTER CONSTRAINT NOT NULL, fr14 FR14 FLOTTER CONSTRAINT NOT NULL, fr15 FR15 FLOTTER CONSTRAINT NOT NULL, fr16 FR16 FLOTTER CONSTRAINT NOT NULL, fr17 FR17 FLOTTER CONSTRAINT NOT NULL, fr18 FR18 FLOTTER CONSTRAINT NOT NULL, fr19 FR19 FLOTTER CONSTRAINT NOT NULL, fr20 FR20 FLOTTER CONSTRAINT NOT NULL, fr21 FR21 FLOTTER CONSTRAINT NOT NULL Fr22 FR22 FLOTTER CONSTRAINT NOT NULL "(, e23, e23 FLOTTER CONSTRAINT NOT NULL, fr24 FR24 FLOAT CONSTRAINT NOT NULL, fr25 FR25 FLOTTER CONSTRAINT NOT NULL, fr26 FR26 FLOTTENT CONSTRAINT NOT NULL, fr27 FR27 FLOTTER CONSTRAINT NOT NULL, fr28 FR28 FLOTTER CONSTRAINT NOT NULL, fr29 FR29 FLOTTER CONSTRAINT NOT NULL, fr30 FR30 FLOTTER CONSTRAINT NOT NULL, status TEXT (2) st NOT NULL CONSTRAINT).

    The goal was to get the third token, 'leq_octave_5min '.

    The result string is "leq_octave_5min", but the real result string is the input string itself.

    What is the problem with my method?

    I'm sorry.

    I forgot to turn on 'regular expressions' in "Search and replace the String" VI.

    After having turned it on, it works as expected.

  • Search and replace the string formatting

    Hello

    I try to do a search and replace the formatting of a string.

    In the example, I'm looking for the string 'SUCCESSFUL', but it must also begin by usbflash and some number + PASSED.

    I can't get the format to have a number between 1 and 99. The number of replacements should add up to 6 in this case. I tried with \d for any number, and I also tried [1-99].

    Make a right-click on the function search and replace the string.  There is an option to use regular Expressions.  Then give it a try.

    EDIT: You need to set the entry replace all to TRUE.

  • Search and replace, unadulterated second character?

    I'm doing a VI that communicates with an external device via a protocol consisting of images. I made a couple of subVIs that put these images together as hexadecimal strings which are then converted into numbers and passed to the device. The protocol uses an escape character to avoid sending a constant BOF or EOF at the wrong time. I did a Subvi, which is supposed to do this by using the search and replace. Initially, it looks quite elegant, but it has a fatal flaw, if one of the characters it is supposed to hide is written on the edge of a byte, it will always be replaced.

    Example:

    11 01 00 CE 0D 05 08 EA

    is replaced by

    11 01 00 05 08 EA 0D E7

    C0, C1, 7 d are the characters to replace, the 7 d is the escape character.

    Now I wonder, is it possible to do a search and replace function search only every second character in a string?

    Hi Tzench,

    Why you do not work with numbers of converts? It should be easier (and safer) to replace some U8 values instead of search (errors) & replace in a string...

    You should also be careful when you give examples. So in your example, the "hex" number is separated by spaces, search & replace should not create problems with "byte-border '!

  • RegExp search and replace, keep the formatting of the original text

    Hello!

    Will have to perform the Search and replace within a framework of text using RegExp.

    And to retain the original formatting of the text block.

    How is it possible?

    Bad example-, it converts all the text formatting to the format of the first character:

    var reg = /a/gmi;
    var replacer = '*';
    var fr = activeDocument.textFrames[0];
    fr.contents = fr.contents.replace (reg , replacer);
    

    find_and_replace_regexp.jpg

    Thank you!

    I has not yet been tested your code.

    But why you did not play with my code snippet, use something like this:

    // regex_changeContentsOfWordOrString_RemainFormatting.jsx
    // regards pixxxel schubser
    var s = /arguments/gi;
    var replacer = "other string", result;
    var atf = activeDocument.textFrames[0];
    
    while (result = s.exec(atf.contents)) {
        try {
            aCon = atf.characters[result.index];
            aCon.length = result[0].length;
            aCon.contents = replacer;
            } catch (e) {};
        }
    

    Try it and have fun

  • GREP: Search and replace

    Does anyone know if its possible to take a list (shown on the lower part of the image) and run a GREP search and replace to create the list of tabs (shown on the picture)?

    I know that the majority of it can be made with the regular search and replace: separate the first and last name; MD and MD #; Postal code and telephone number.

    What I was not able to understand is how to add a tab forward and backward the state abbreviations 2-digit, the Middle Initial, phone number and more important even if there is a way to add tabs in when there aren't the same amount of lines, such as the field of specialty.

    I know that I can use the GREP search and replace to add a tab before each paragraph back, then remove the tab where there are 2 paragraph after each game returns, then substituting a tab and a paragraph back to just a tab, together running all the rows in each set.

    Any help would be greatly appreciated, and if there is anywhere I can learn more about GREP, I would love to learn it.

    Thank you

    Peter

    Doctors List Styles.png

    Peter, try this...

    Find:------.<>

    Replace: \t$0

Maybe you are looking for