Help to find and replace. Please

I imported a text where there are in italic content original, but when put in IDCS4 italic text appears as _italic words_. It is under the Roman name with _ of the characters who surround him. Is it possible to find and replace. Needless to say that the text between the _s varies.

I would like to try a find/change GREP searching (_) ([^ _] +) (_) and replace them with $2 all change to italic formatting (preferably in a character style).  This translates to seek a _, then everything that is not a _, followed of another _ and replace it with the content between the two. You can also use (_) (. +?) (_) that match the srting more runs between two characters _ in the same way (except it does not cross a paragraph break), but it will run a little slower.

Credit for this should go to Peter Kahrel and his excellent introduction GREP...

Tags: InDesign

Similar Questions

  • Need help to find and replace multiple query

    Hello

    Is it possible to run multiple searches and replace queries both in Dreamweaver 8?

    Currently I have:

    Find: current Document
    Search: Source Code
    Find: ToR
    Title: < acronym 'Mandate' = > ToR < / acronym >
    Options: Match case and find whole words

    I have search and replace about 12 acronyms on each page, and I was wondering if I can create a search and replace the query that includes all my acronyms or do I have to manually run these 12 single queries every time?

    Thanks for the help!

    I'm afraid that is both

    --
    Paul Whitham
    Certified Professional Dreamweaver MX2004
    Adobe Community Expert - Dreamweaver

    Valleybiz Web design
    www.valleybiz.NET

    "Acadieman" wrote in message
    News:eci6a5$JDL$1@forums. Macromedia.com...
    > Hi,.
    >
    > Is it possible to run multiple searches and replace queries both in
    > Dreamweaver 8?
    >
    > Currently I have:
    >
    > Search in: current Document
    > Search for: Source Code
    > Find: ToR
    > Replace: ToR
    > Options: match case and find whole words
    >
    > I find and replace about 12 acronyms on each page and I was
    > I was wondering if I can create a search and replace the query that would include
    > all my
    > acronyms or I have to manually run these 12 single queries every time?
    >
    > Thanks for the help!
    >

  • Need help to find and replace

    Hi all

    I need assistance to find and replace words between \ make "BOLD" and delete the symbol in my pages just like below.

    Text example:

    He astonished his parents by \turning a childhood obsession\ in a decent-paying career, much to their dismay.

    After the text:
    He astonished his parents by turning a childhood obsession into a decent-paying career, much to their dismay.

    Thanks in advance,

    Siva

    (\\+?) will never return more than 1 backslash because the? is telling to find the shortest match. {I would change that to each (\) or (\\{2)}

  • Need help to find and replace grep using Xml tags!

    Hello world

    I have a Textframe with value ($ 00.00) between two xml tags. a tag for "$" and another for a value (00 h 00).

    Now I find these value (00 h 00) and change value (24.10). If I run the script, removing the price tag XML and updated price.

    My expectation is the value of these update without deleting the XML tag.

    Please suggest me where I made the mistake in the code. Please find the code and screenshot for your reference.

    Before running the Script: After running the Script:                                                                                                             

    Screen Shot 2016-09-17 at 5.03.18 pm.pngScreen Shot 2016-09-17 at 5.09.31 pm.png

    Code:

    var flgGREP="[$]\\d+[.]\\d+"
    var Price="$24.10"
    myLine=app.selection[0];
    FindReplaceValue(flgGREP,Price,myLine);
    function FindReplaceValue(findValue,replaceValue,Sapps){
        app.findGrepPreferences = app.changeGrepPreferences = null;  
        app.findGrepPreferences.findWhat = findValue;  
        app.changeGrepPreferences.changeTo = replaceValue;
        Sapps.changeGrep(); 
    }
    

    -yajiv

    This is because the XML (opening and closing of the representations) tag is a special character but a generic.

    So the above grep model fails because you have a text like [TAG] $[TAG] [TAG] 00.00 [TAG] is not picked up by the grep engine.

    However there is not (unless I'm wrong) a metacharacter which could identify the brands of tags. You can do this in text F/R, but of course it is not as smooth as grep.

    Bad news is that these special characters are not saved if you F/R on a labeled content (I mean in the above case).

    Good luck for you is that you seem to know the markupTag that host the price = copy_frame so I'd domething like:

    var root = app.activeDocument.xmlElements[0];
    var copy_frame_tags = root.evaluateXPathExpression (".//copy_frame" );
    var tag;
    
    while ( tag = copy_frame_tags.pop() ) {
         tag.contents=="00.00" && tag.contents="24.10";
    }
    

    HTH

    Loïc

    Ozalto | Productivity-oriented - Loïc Aigon

  • Find and replace text

    Hello

    I need to find and replace the string below. can someone please help.

    I have a 9E20300349013 string

    If the second character is E or G, then I need strip of the first two charecters like 20300349013.  I tried like, but is there a better way to do this in a single sql statement.

    IF REGEXP_SUBSTR ('9E20300349013', ' [A - Z] +', 2, 1) = 'E' OR
    REGEXP_SUBSTR ('9E20300349013', ' [A - Z] +', 2, 1) = 'G' THEN
    --
    VAR_PCN_SCRUBBED: = REGEXP_SUBSTR ('9E20300349013', ' [0-9] +', 1, 2);
    --
    END IF;

    IF SUBSTR ('9E20300349013', 2, 1) = 'E' OR
    SUBSTR ('9E20300349013', 2, 1) = 'G' THEN
    --
    VAR_PCN_SCRUBBED: = SUBSTR('9E20300349013',3);
    --
    END IF;

    Hello

    As Nick suggested, you can use only 1 operation instead of 2 = operations.

    Instead of IF, you can use CASES.

    Using regular expressions, you can also search for 'E' or 'G' at the same time, like this:

    var_pcn_scrubbed: = REGEXP_REPLACE ('9E20300349013'

    , '^. [EG] (.*)'

    , '\1'

    );

  • Captivate 9 find and replace incompatible function

    Hello. I tried to get him to find and replace function to work in the last several days now and find that it doesn't always. For example, in my project, I have the word "homepage" listed in five different slides, however, search and replace only considers it once and missing four others. What happens in several projects as well. Help, please.

    You are looking in the text captions.  I guess that "homepage" is in a text caption?

  • How to find and replace data in fields of form in acrobat xi, its not allowing to do while trying, one

    How to find and replace data in fields of form in acrobat xi, its not allowing to do while trying, request adobe livecycle to settle. Help, please.

    Best way to do is the following:

    -Open the PDF in Acrobat.

    -Go to tools - form - form more Options - export data.

    -Save form data in an XML file somewhere on your system.

    -Open the XML file in a plain text editor (I recommend Notepad ++).

    -Let's say you want to replace all the years in dates "2013" to '2014 '. Do a global search & replace '2013-' to '2014' - (I added the dashboard in order to ensure that only the date fields are changed).

    -Save the XML file (maybe under a new name).

    -Go back to the PDF file and now go to tools - forms - more form Options - import data.

    -Select the modified XML file and import it.

    -Fact!

  • The difference between the "Find and replace" in the menu and FindChangeByList.jsx

    Hello! Please help me. Why this work ' find and replace ' (grep), but not working in FindChangeByList.jsx

    find replace
    \r\d (.) \D\d0$ 0

    This procedure find enter, any digit, any digit, any digit and replace all in 0, found.

    Example:

    front after

    7.35

    0

    7.35

    But it does not work in FindChangeByList.jsx (file: FindChangeList.txt):

    grep{findWhat: "\r\d (.)} \D\d"}{changeTo: "0$ 0"}{includeMasterPages:true, includeHiddenLayers:true, includeFootnotes:true, wholeWord:false}

    And it does not work in the present:

    myDocument var = app.documents.item (0);

    app.findGrepPreferences = NothingEnum.nothing;

    app.changeGrepPreferences = NothingEnum.nothing;

    app.findChangeGrepOptions.includeFootnotes = false;

    app.findChangeGrepOptions.includeHiddenLayers = false;

    app.findChangeGrepOptions.includeLockedLayersForFind = false;

    app.findChangeGrepOptions.includeLockedStoriesForFind = false;

    app.findChangeGrepOptions.includeMasterPages = false;

    app.findGrepPreferences.findWhat = \r\d (.) « \D\d » ;

    app.changeGrepPreferences.changeTo = "0$ 0";

    myDocument.changeGrep ();

    Please help me understand. Thank you!

    in findChangeByList you have to escape the string:

    {findWhat : » \d(.) \r\\ \\d\\d"}

  • 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 function in file names?

    Is it possible to do a find and replace in the names of files, rather than the office or similar?  I have a large list of names of files that all have a problem with them I want to replace, but I don't want to pass by and do each manually!  A better way to do it?

    Rob

    Hello exoticdisease,

    Thanks for posting on the Microsoft answers Forum.

    Select the files in Windows Explorer, press and hold Shift and right click on them. Choose copy from the menu in the path. Paste the list in any editor you prefer. You get the full path for each file, but a simple find/replace will clean up if necessary.

    I don't know if it of what you're looking for or not.

    If please reply and let us know if this solves your problem or if you need further assistance.

    Marilyn
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • In Vista, it is possible to find and replace a specific name that I used many files on the hard drive?

    My apologies if someone already asked this (I couldn't find the answer however). I used the name of a person to dozens of (mostly Word) documents that are kept in many different files on my hard drive. I know that I can dig each document separately and then use hidden word and replace the tool to change the name. But this will inevitably take time. Is it possible to do a through - computer find and replace so that I don't have to do this exercise once? Any help gratefully received. Thank you.

    Hello

    I suggest you go through the article and check if it helps.

    Searching in Windows Vista, part 1

    http://Windows.Microsoft.com/en-CA/Windows-Vista/searching-in-Windows-Vista-part-1-secrets-of-the-search-box

    Searching in Windows Vista, part 2

    http://Windows.Microsoft.com/en-CA/Windows-Vista/searching-in-Windows-Vista-part-2-Start-menu-and-control-panel-search-tips

    Searching in Windows Vista, part 3

    http://Windows.Microsoft.com/en-CA/Windows-Vista/searching-in-Windows-Vista-part-3-using-advanced-search-for-those-hard-to-find-files

    Improve Windows searches using the index: frequently asked questions

    http://Windows.Microsoft.com/en-CA/Windows-Vista/improve-Windows-searches-using-the-index-frequently-asked-questions

    Hope this helps and let us know if you need more assistance.

  • InDesign, find and replace

    Hi, can anyone help with this problem, I have tried searching online a few times, but no luck.

    I have a paragraph with several capital letters in square brackets, for example: AAAAA (1) or (2) BBBB. If I need a "BOLD" of each of them, I will have to look for each other and manually "BOLD".

    Is there a function in find and replace that can auto search for this kind of texts and "BOLD" of all?

    Or GREP functions?

    Concerning

    Lily

    \(\d\) [\u\h] + \u

    (^/)

  • Find and replace the script in Question.

    Hi all

    I searched for a way to show the amount of changes here?  My script to find and replace is working however, I would like to see if there are changes 0 or 100 so that we know how much if any of the corrections have been made.  Basically, I want to show him the same type of information as the (Native find replace in Indesign). If there is a link that talks about this please point me in that direction.

    I found it... «changes var = ' must be set to the line in function changeGrep()...» I've got an example of script grep for you that replaces the word "December" 'Months' and alerts as to how many changes have been made.

    app.findGrepPreferences.findWhat = "December";

    app.changeGrepPreferences.changeTo = "month";

    changes in var = app.documents [0] .changeGrep ();

    var numChange = changes.length;

    Alert ("the changes have been made." + numChange);

  • Disable auto-fill in the dialog box find and replace?

    Apparently, this question was not asked before, or at least the Adobe search engine can not find 'Find replace' in the forums. Is it possible to disable auto-fill "characteristic" in the find and Replace dialog box? I think it's dangerous. Find and replace in a coding environment must be very deliberate. Caught off guard, more than once, with attempts to Dreamweaver to do my thinking for me. Thanks for any help!

    Oh without a doubt the fault is mine. Last minute search / replacement of a site, by request of the customer. (No matter WHAT last-minute editing is not asking, it's begging, in trouble, but it is also real life.) Still, I can't blame anywhere but with yours truly, but it would be nice if Dreamweaver offers the opportunity to help to protect me from myself, somehow.

  • Find and replace tags opening and closing

    Is there a way to search and replace the entire tag in dreamweaver?

    I want to take away all of the < span > tags in the document because it is an epub. But some of the <>spans are for the body and some are for another hairstyle, in this case italic. I can go through and just find and replace, but then who would only replace the opening < span > and not closing </span >, leaving a lot of open tags < em > to sift through. There are currently more than 1,500 cases of italic text in the book and I won't have trouble all by hand. What I want to do is to find the particular < span > tag and replace < em > < /em > both the opening and closing.

    Here is an example of what I'm trying to do:


    To find:

    < span class = "CharOverride-4" > < / span >


    And replace with:

    < em > < /em >



    How do I get there?


    Thank you

    If you use the Search Tag he finds tags opening / closing and replaces them with opening and closing .  Please see my screenshot again.

    Nancy O.

Maybe you are looking for

  • HP Envy 17-130ea: shows only 2 Beats Audio speakers

    Hi people My HP Envy has 4 speakers and 2 subwoofers inside and uses the Beats Audio. However Beats Audio and Windows Pro 8.1 shows only 2 speakers. When I test the sound, I mean the 4 speakers, 2 on the left at the same time then 2 on the right at t

  • Display granular policies

    A few months ago, I noticed some fonts on some Web sites have started posting rather grainily and assumed that the cause was the website.  Today, both policies have changed appearance.  Arial became slightly wider looking in my spreadsheet Works and

  • HP jet p1102w laser: printing on hp laserjet p1102w error

    When I come back to print from my iPhone and iPad the printer says error could bot print I have tried reseting cartridge changing power rest but he didn't he had printed one page and display the error message please help

  • When you use my mobile internet, I get an EA 5005: 0 x 80070002 access violation error.

    I have a mobile internet usb key, I tried to use the other night and I now get a warning EAccessviolation I then try to uninstall the program, and I get an error 5005: 0 x 80070002. Can you help me please? the OS is Vista 32 bitprogram is called Roge

  • "Office Home and Student" (3 licenses home pc)

    We HAD to reinstall vista on my wifes laptop.  I got a copy of "Office Home and Student" (home 3 pc licenses) on this laptop. If I reinstall, it will use a different install lic. # or use the lic. # He had on first installation?