Find and replace grep Question.

I'll put up paragraph styles and I'm changing anything with < CR > in a ^ p.  How do I do this with a string of grep?  I am wanting to add this string grep grep style in the paragraph styles.

With GREP Styles you can not change the text, but the formatting of the text.
You will need an action of find/replace with the TEXT or GREP find/replace.

Uwe

Tags: InDesign

Similar Questions

  • Find and replace GREP

    I'm looking for formatting a document with a lot of this format

    (g) If an organization wants to launch a station of the line, it must have enough personal certification B1 and B2. This means that they must have sufficient personnel who are B1 and B2 licensed and which have undergone a process of qualification allowing them to release the planes returned to service after that maintenance was performed.

    like to remove the first letter in parenthesis paragraph Style Normal and apply the paragraph Style letter list.

    If I apply the new style I have to manually remove the letter in parenthesis.

    I tried Grep ^ \([\l\u]\) I have also some letters in brackets in the document, it will search only for this, at the beginning of the paragraph. that's the law.

    Any help would be much appreciated I basically just composed the GREP without a clue what I'm doing, I'm learning but rather slowly.

    Thanks, sorry that it is confused, I'm here for any question.

    The trick to remove the text AND change the style of a sudden is to have a replacement value in the field changes or only changes to style. Your grep looks good, then it would take a minor amendment:

    Search: ^ (\([\l\u]\)) (.), and change $ 2 with the style in the change Format settings. $2 is the second subexpression-(.) at the end - and everything that you do replace the first character after your parentheses with himself.

  • 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

  • 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"}

  • 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);

  • Find and replace Question (skipping the code block)

    Hi, I worked on it for a few days now and can't seem to make it work. I read through the tutorials page Trent Mueller, etc., but it does not work just the way I need to. I'm really starting to get a little goofy to manually place images based on finding the unique product code. I'd appreciate any help really.

    I'm working on a catalogue and I have about 200K lines of products that use one of the 10 images. Basically, I need to find and replace:

    < class td = "xl15700" style = "border: solid windowtext .5pt ' > PRODUCT < table >

    < class td = "xl64700" style = "Dimensions are: 11.0pt;" color: black; Police-weight: 700;

    text - decoration:None; Text-Underline - style: None; Text-line - through:None;

    do-family: Calibri; border-top: none; border-right: none; border-bottom: .5pt solid windowtext;

    border-left: none; background: yellow; MSO-model: black no ' > < table > ABCD

    < class td = "xl64700" style = "border: solid windowtext .5pt ' > < table > ABC

    < class td = "xl64700" style = "border: solid windowtext .5pt ' > DEF < table >

    < class td = "xl64700" style = "border: solid windowtext .5pt ' > < table > GHI

    < class td = "xl70700" style = "border-top: none" >  </td>

    in:

    < class td = "xl15700" style = "border: solid windowtext .5pt ' > PRODUCT < table >

    < class td = "xl64700" style = "Dimensions are: 11.0pt;" color: black; Police-weight: 700;

    text - decoration:None; Text-Underline - style: None; Text-line - through:None;

    do-family: Calibri; border-top: none; border-right: none; border-bottom: .5pt solid windowtext;

    border-left: none; background: yellow; MSO-model: black no ' > < table > ABCD

    < class td = "xl64700" style = "border: solid windowtext .5pt ' > < table > ABC

    < class td = "xl64700" style = "border: solid windowtext .5pt ' > DEF < table >

    < class td = "xl64700" style = "border: solid windowtext .5pt ' > < table > GHI

    < class td = "xl70700" style = "border-top: none" > " < img src ="... /.. / images/PRODUCT.jpg "> " < table >

    I tried to use many of the buildings, but I can't move me many questions. I'd really appreciate any guidance and help.

    I thought about it...

    To find:

    U27-2CHIP-(C|) MY | THERE | K)\n*\s*]*)>(.*?) \n*\s*]*)>(.*?) \n*\s*< td(\b[^="">]*)>(.*?) \n*\s*]*)>(.*?) \n*\s*]*)>(.*?)

    Replace:

    U27-2CHIP-$1\n$3\n$5\n$7\n$9\n

    Thanks for your help, Murray. I appreciate it.

  • The powerful ' find and replace ' features are missing pages

    It would be good if the development team of Pages read the questions and the problems posted on the apple Support communities.

    Find and replace invisible characters (tabs, returns, etc.) have disappeared in the Pages for older versions.

    Other researchers suggest that the functions are in the NON Apple software. Duh. TextEdit not more and not pages. Disappointing, can not describe the feeling.

    The new Apple:

    "He Just (not!). Work' and 'where's the Hell... ».

    There is that one thing I use 5 Pages for: drawing, which can be fun in its limits. As a designer, I like he is aligned with the alignment that makes things very fast for me. Unfortunately, other sucks.

    Pages ' 09 is pretty horrible at drawing but great for the layout and productivity. The contrast between the two is remarkable, when I switch between them. If only I could have 5 Pages, in Pages ' 09 drawing tools, I could happily mix 5 Pages completely and be totally unaware of anything that does not work or works so badly she may as well not exist.

    2016 is coming with the editor of affinity, I hope it turns out as well as the designer of the affinity and Photo of affinity, but doubt that it will be the combination of WP, PAO and spreadsheet that makes Pages ' 09 so awesome to work with.

    Peter

  • Find and replace variables

    Hello world

    Setup

    I have a line that connects two cycles in two different VI.

    The vi share the queue by a reference.

    Now that I changed the format of the queue of the enum element to a cluster of enum and date

    my queue reference has changed as well.

    Question

    How to replace (rebind) all variable instances of variables of refnum "old_queue" with "new_queue" refnum queue queued?

    What I tried

    I tried to use 'Find and replace' but it doesn't let me do: in text mode, it displays an icon crossed close to all

    He found bodies, and in graphic mode, that is not has such an option, as substitute a variable refnum.

    First: a lesson for next time. Check the data type of the queue a typedef. Now, the problem goes away. Change the typedef and all references.

    Lesson for next time bonus do not transmit queue around references. It is not necessary. Queues can be appointed. For another reference to the same queue, all what you need to know is its name.

    To answer your basic question, you can't. You'll just have to follow the wires around and replace them manually.

    Mike...

  • 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

  • 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

    (^/)

  • 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 it with an invalid Code in Dreamweaver CC 2015

    I have a HTML file of 800 line with about 200 H3 tags not closed I want to remove. I try to use search / replace, but it doesn't seem to be able to find non closed tags.

    In the excerpt below, I want to remove or delete the H3 tag:

    < /ul >

    < /li >

    < h3 class = "best_SubCategory_Title" id = "455474Title" >

    Best sedan

    < ul class = "ssMatchup_Entries" id = "Matchup455474Entries" >

    < /Li > < li > agreement

    Camry < li > < /li >

    Mazda 6 < /li > < li >

    Passat < li > < /li >

    < /ul >

    I tried different ways, but Dreamweaver search / replace engine can't not find invalid or cavities not blocked tags?

    Here are a few things that I tried, and as you can see, Dreamweaver cannot find the H3 tag:

    Screen Shot 2016-01-21 at 11.18.39 AM.png

    Screen Shot 2016-01-21 at 11.19.47 AM.png

    If I close it manually one of the H3 tags, and then find and replace can find. I think I can use regular expressions to do this, but I need to understand this too, if that's the only way.

    What do you think? Any idea on how to get rid of 200 H3 tags not closed? Perhaps another application?

    Answered my own question, here is the solution:

    For some reason, Dreamweaver cannot find and replace invalid code, or at least it is not easy to do. My problem was that I had a H3 tag not closed and would not replace it. I had to first close the H3 tag, and then I could replace it.

    I did a find and replace the one sought a ">" followed by a lot of white space, like this:

    As my license to close the H3 tag, then I could easily find and replace all now closed H3 tags, like this:

  • Find and replace categories m2 and m3 of indices

    Now I change in the m2 and m3 categories what in the Clipboard.  But it does not work when I have categories m2 and m3 in different colors and different fonts tru the lay-out.

    How can I find and replace the categories m2 and m3 to index m 2 and m 3 index?

    Only m2 not 2 only.

    Thank you very much

    Your "m2 only not the only 2" seems to contradict what you wrote earlier, but I guess what you want is style 2 and 3 only when they are preceded by m. If this is the case, follow these steps in the grep of the Find/Replace dialog box tab:

    Search: (?)<>

    Replace:

    Change format: select the index.

    (?<=. .="" .)="" is="" a="" so-called="" lookbehind,="" [.="" .="" .]="" a="" character="" class.=""><=m) means="" 'preceded="" by'="" and="" [23]="" stands="" for="" '2="" or="">

    Peter

  • 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...

Maybe you are looking for

  • I do not see firefox home page when I open firefox

    When I open Firefox, I can't have the default Start Page for Firefox since the update to Firefox 20.0.I used the option restore failing Firefox preferences but it refuses to work

  • cRIO thanks the Module NI 9237 bridge in the Interface of scanning and Anti-Aliasing

    Hello I have questions about the use of a Module NI 9237 bridge with CRIO and its use in Scan Interface mode. The manual speaks the data rate of the module, and a (n) parameter that can be set to adjust (to a minimum of 1613 Hz) which in turn puts ac

  • Stereo library pointers 2012

    Dear programmers, I am evaluating the new library of stereo Vision and since I'm pretty new to this, I would greatly appreciate a tip or two. My setup (simple) is: -Two cameras DSLR (Canon 50 d and 350 d and different models) -Different objectives, b

  • remove security for the family

    For others: I wanted to completely remove Family Safety because my child is protected by Norton Family.  Here's what I had to do: Phase 1: -Connect using my (parent) account on live.com-Go into account settings-go to permissions-manage parental permi

  • Suggestions for Vista SP2 installation?

    I have the window update the value "warn me before to download and install".  So, I have been notified that SP2 is available.  Need suggestions on the best estimate how to install without problems.  Must I download/install from boot.  Should I disabl