InDesign GREP CC: Indication am Zeilenanfang erganzen

Hallo zusammen,

Wenn ich in Indesign CC mit nach GREP ' ^ ' (naturally ohne Anfuhrungszeichen) suche und als Anderungsausdruck 'blabla' eingebe, würde ich erwarten, dass vor jede Lutherischen der line "blabla" Favorites wird (naturally auch ohne Anfuhrungszeichen). Passiert aber nichts - see Screenshot.

grep.png

In meinen Texteditoren works dieser regulare Lutherischen aber in jedem fall. ICH mache was GREP please?

Danke und Gruss

Holger

In InDesign GREP, you find something here to change it.

trying to find ^.

Replace by bla $ 0

This will search the first character to your paragraph and replace it with blah , followed the found character. The net result is that blah is added to the front of the paragraph, and the found character remains.

Tags: InDesign

Similar Questions

  • Style InDesign Grep question

    Hello

    I have a question about Indesign. I want to make the text a certain character as a space of hair for example "BOLD". This must be addressed in a paragraph style. I think that this can be done with GREP styles. I've tried several things, but it is not supposed me... Anyone know if this is possible or is there a better way to do?

    Thank you!

    Apply style to "bold" to the text:

    (?<>

  • Indesign GREP

    collection of poetry book

    each poem has 4 or 5 paragraphs with left alignment 4 lines

    each para separated by after space 2mm

    last line of the para should end with point (point)

    I try to GREP with Find: ([^. +]) \r and replace $1. \r

    he find and change all the paragraph except last para

    What can I do?

    Search for:. $

    Replacement: $0.

    (^/)

  • InDesign Grep: How to add a tab before and after a certain number

    What would be the expression grep to find and replace the following text:

    A paragraph begins with a number (may be more than one) followed by a space and a text. I want to replace it with a tab character before the number (meaning: beginning of paragraph) and another tab after the (or numbers). Thank you very much in advance

    OK, try ^ (\d[^\s]*)(\s+)

  • How to create an InDesign Grep Expression of specific words

    I have a long list of wishes of congratulations following a certain rhythm. How can I create a style of grep with the following sequence:

    Congratulations to [name] for...

    • The first two words of the paragraph are always: congratulations to
    • Followed by: name
    • Followed by: to... (then continue with the rest of the info)

    There is a style of general paragraph to paragraph, which we will call this 'body '. A character style, let's call 'fat', should be applied to the first word, then spread the word "to", apply the character 'fat' new style name (however that may be long) and stop at the word 'on '. Remember that the word "to" is mentioned again later on, so I would not use an expression with the words 'to', unless that can be specified only in the first instance.

    I am new to GREP, but have found so far that what follows will give me the style applied to the first word characters: ^ congratulations

    Thank you in advance to those who can help me here.

    In your GREP style in the paragraph style

    (?<=Congratulations to).+?(?="">

  • InDesign GREP - add without changing character

    I have a string of characters, say the alphabet. How can I add a character after each letter without changing the letter.

    That is, if I want to become a1 b1 c1 21 d1 e1 f1 g1 h1 abcdefgh

    Thank you very much in advance!

    Hello

    Check the screenshot below:

    Concerning

    Siraj

  • Approval of education is active in Photoshop CC but not in Indesign CC

    We have a teaching license (16 approvals, Creative Cloud Applications), which has been deployed with creative cloud conditioner. The administration Console shows that all licenses are active. On all devices, it seems that CC Photsohop is ok, undder in Photoshop CC, SYSTEMINFORMATION shows a subscription serial number. But Indesign shows the indication: 'Testmodus - 0 days left.

    What's not? Is this a Bug?

    I expect not to see a license to work for a single application, but not another instrument.

    Can update you InDesign to see if the problem persists?

  • Model GREP does not not in JavaScript

    The model following "\r+\Z" works to find InDesigns GREP and replace to replace the empty paragraphs at the end of a story, however, it doesn't seem to work in the script environment.

    Why not the following work:

    app.findGrepPreferences = NothingEnum.nothing;
    app.changeGrepPreferences = NothingEnum.nothing;
    
    app.findGrepPreferences.findWhat = '\r+\Z';
    
    app.activeDocument.selection[0].changeGrep();
    

    \\r+\\Z

  • Style grep text between commas of targeting

    Hello InDesigners!

    I have a list of names in a single paragraph, separated by a comma, like this...

    John Doe, Jane Smith, Sally sell

    I want to target each name and first name with one style of character No Break nested in a paragraph style.

    I found this ' find between ' grep and article useful code here:

    (?<=\().*? (?=\))

    http://InDesignSecrets.com/findbetween-a-useful-grep-string.php

    But InDesign / Grep does not appear to be a symbol for spaces and I don't know how to escape the space or exactly how I needed to work with the "," (comma and space).

    Any ideas?

    Thank you!

    Rick

    I described you, what you need to do. Your GREP is complicated, not looking for 2 commas. There are some unknown circumstances again, because some of the names may contain points, some other diacritc sign that you do not now include.

    1 set the style of entire para without pause. It is allowed when the text disappears.

    2. have a developed character style to break:

    Take care that you will not accidentally the character style to the entire image or future text!

    3. now redefine your paragraph Style in the GREP section. Insert \x{002C}\s to apply the character Style to a comma and a space, you can use a normal space in your case too. But one, followed by a space would have done the same thing, comma and unicode 002C are identical, as you see here. When you click on 'Preview', you will see how the text becomes visible:

    Even if the columns are closer, you see the correct reflow of the names:

  • Automatically launch all my GREP searches

    Hello

    Is it possible to automatically launch all my research GREP in a document? Perhaps via the change to find script?

    Kind regards

    Anita

    Hi John,.

    Using the Multi-find/Change or Peter Kahrel grep query Manager [InDesign: GREP questions overview |] [Peter Kahrel] too!

  • Problem with GREP - find only the 1st occurrence

    Hi all

    In the example below, I'm trying to find the text between pairs of characters $ .

    1.png

    Theoretically, it should work - \$\s.+?\s\$ - but in practice, he finds that the 1st instance. I can't understand why.

    It is interesting in JS, this phrase works as expected.
    I select text and run the script:

    Main();
    
    function Main() {
        var doc = app.activeDocument;
        var sel = app.selection[0];
        var contents = sel.contents;
        var match = contents.match(/\$\s.+?\s\$/g);
    }
    

    And it returns all occurrences of four:

    2.png

    What I am doing wrong?

    Thanks in advance.


    Kas

    We could improvements, adds Adobe InDesign GREP and now the character $ gets a little hackneyed. He did likewise for me (only find 1 here), but I got it to work using

    \x24\s.+\s\x24

    (where "\x24" is the hexadecimal representation of "$").

  • Grep Question Placement. ?

    Hi all

    I would like to make the InDesign grep search and replace method to reach below substitutes.

    The requirement is the third line of the text he had move on the first line with carriage return, is it possible instead of Grep.

    Note: I placed is the content for the sample, but live a dynamic content.

    I tried myself with the peace of code here.

    app.findGrepPreferences = app.changeGrepPreferences = null;

    app.findChangeGrepOptions.includeFootnotes = false;

    app.findChangeGrepOptions.includeHiddenLayers = false;

    app.findChangeGrepOptions.includeLockedLayersForFind = false;

    app.findChangeGrepOptions.includeLockedStoriesForFind = false;

    app.findChangeGrepOptions.includeMasterPages = false;

    app.findGrepPreferences.findWhat = "Blabla (\\d+.\\d+)\\r(*.). \\r|| blah-blah-blah. \\r";

    app.findGrep ();

    Thanks in advance.  Any suggestion to find the exact model by using Grep expression.

    Kind regards

    Imagine

    Imagine them salvation.

    Please find below snapshot is easy to understand for you.

    app.findGrepPreferences.findWhat = "^(BLABLA \d+.\d+\r)(.+\r)(\|\|bla-bla-bla\|\|\r)";
    

    THX

    csm_phil.

  • Once again on alignment to the right reference numbers with GREP

    For some jobs, I want the reference numbers in the notes align with the period that I have Options of IDCS4 reference Add (with an en space) as the separator between the number of note and the note text.  Not much so I set the paragraph style reference with a tab 'Match point' and then insert this tab at the beginning of the note.  I recently stumbled on this thread of 2009 where RodneyA that describes more in detail, and Eugene Tyson added a GREP search to automate the addition of tab: replace (~ F) with \t$1.

    I can't get this to work in IDCS4.  It worked in earlier versions?  Earlier this year, Jongware explained that GREP can not replace a reference marker, only to watch in front of or behind the marker to replace anything.  Unfortunately, in my notes nothing before the marker reference of GREP replace until I manually put my tab there.  Addition of these tabs to hundreds of notes by hand is not if bad (jumping with Ctrl + arrow keys) and ID's of the propensity to consume a way occasionally note, I need to check all the same.  But I was mistaken in thinking that if I want to automate the addition of tabs I you do this via JSX?

    Thank you

    David

    David, indicating when that you can't get something working, I must also tell you why

    But when I tried your "replace (~ F) with \t$1 ' for me it became real obvious right away: the code ~ F is not only 'the footnote reference number' but also the note itself in the text. So, it all works in the sense that you get a tab before the code of reference number, you get loads of additional tabs in your text as a bonus.

    There are several ways around this. The most obvious is to limit the operation replace all paragraphs in style with your reference style. If it is a single (mine is usually), it will work immediately. It is the first response of Eugene in the previous thread - possiblly you forgot to put this paragraph in the field Format style find.

    Another way is to add a tab only when the code of reference number is the beginning of a line:

    ^ ~ F

    replace it with

    \t$0

    (You're right noticing the trick 'postanalyse' cannot be reversed for an advanced search for just "opening of the line followed by the code of reference numbers". "It's the special flavor of an InDesign GREP Limitation).

    This may fail if you have a note at the beginning of a paragraph

    Still another way is to try to make use of the vertical position of the code reference number. If your references are superscript (which is fairly regularly) and the numbers in the notes themselves are not (that they may or may not be), you can search

    ~ F (+ position: normal)

    and replace with himself more a tab before, as shown above. (A variation would be to use a style of character for referrals by exposing and seek [none] style to pick up those inside notes characters.)

  • The source of text of hyperlink destination

    If you go to a destination of the hyperlink text and look in the editor mode, you should be able to see a small symbol that resembles a rounded corner square with a circle and cross inside. I guess that's an invisible text element that is used to bind to the source.

    I want to be able to do is to select one of these items and using JavaScript to select the source element... However, I am having a hard time getting the script to recognize this element as anything... Not to mention about his relationship with a source.

    I hope it's quite explanatory.

    Hi all

    Back from my break.

    I found the problem 2.

    (1) how to get the hyperlink sources since the destinations, i.e. you can so make reverse it as Pickory suggested.

    (2) how to find the symbol of Destination which can be seen on the editor mode, but is not a symbol of hidden character.

    This can be done with indesign GREPs as there is no symbol on the main screan (Peter correct me if I'm wrong), but can be found with a regex in javascript

    reg = /\ufeff/g;
    q = mySelection.contents.search (reg);
    

    All this does is find the symbol, but that is just a symbol that contains no information, know where it is associated with to compare the point insertion and history co-ordinated the symbol with the values in destinations.

    Of the to do quickly, I make a table (see text)

    There is a problem with that what the values or static is ok for creating an index or something like that, but if we replace the main text story / the symbol insertion point will change and the script won't find the destination with the symbol.  I this is a problem take advantage of re-writing of scripts there.

    Kind regards

    Trevor.

    P. s.

    MAKE SURE THAT THE JAVASCRIPT CONSOLE IS OPEN OR THAT YOU WILL NOT SEE THE SCRIPT TO DO ANYTHING!

    // Hyperlink Destination Source Script byTrevor http://forums.adobe.com/message/4721797#4721797
    // MAKE SURE THAT THE JAVASCRIPT CONSOLE IS OPEN !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    // SCROLL  UP THE CONSOLE UNTIL YOU SEE (:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)
    
    var myDoc = app.documents[0],
    myDestinations = myDoc.hyperlinkTextDestinations.everyItem().getElements(),
    mySources = myDoc.hyperlinkTextSources.everyItem().getElements(),
    myHyperLinks = myDoc.hyperlinks.everyItem().getElements(),
    dl = dll = myDestinations.length,
    hl = hll = myHyperLinks.length,
    myDestinationsSearchTable = [],
    myHypers = {}, hyps = [], dests = [], n,
    mySelection = app.selection[0];
    
    // Make an index of destionation sources from the hyperlinks that contain both sources and destinations
    // This will miss any Destinations that don't have sources
    $.writeln ("\r\r(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)\r(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)\r\rHyperlinks Sources from Destinations Script\r\rThese are my look up keys")
    while (hll--)
        {
            if (myHyperLinks[hll].destination != null)
            {
                if (hyps[myHyperLinks[hll].destination.index] == null)
                {
                    hyps[myHyperLinks[hll].destination.index] = {};
                    hyps[myHyperLinks[hll].destination.index]["Destination"] = myHyperLinks[hll].destination;
                    hyps[myHyperLinks[hll].destination.index]["Sources"] = [];
                 }
                hyps[myHyperLinks[hll].destination.index]["Sources"].push(myHyperLinks[hll].source);
            }
         }
    
    // make an array of all destinations with what every properties you want to extract i.e. name location sources page number etc.
    // add or remove as prperties as needed "DestinationID" is used here for the search look up table
    while (dl--)
        {
            dests[dl] = {};
            destIndex = myDestinations[dl].index;
            dests[dl]["DestinationID"] = myDestinations[dl].destinationText.parentStory.index+"x"+myDestinations[dl].destinationText.insertionPoints.lastItem ().index;
            myDestinationsSearchTable[dests[dl]["DestinationID"]]=dl; // makes a look up table to use for search
            $.writeln("myDestinationsSearchTable ["+dests[dl]["DestinationID"]+"] = "+dl);
            if (hyps[dl] != null)
            {
                dests[dl]["HasSource"] = 1;
                dests[dl]["DestinationName"] = hyps[destIndex]["Destination"].name;
                dests[dl]["DestinationIndex"] = destIndex;
                dests[dl]["DestinationInsertionPoint"] = hyps[destIndex]["Destination"].destinationText.insertionPoints;
                dests[dl]["DestinationCharater"] = hyps[destIndex]["Destination"].destinationText.insertionPoints.lastItem ().index;
    
                dests[dl]["DestinationStory"] = hyps[destIndex]["Destination"].destinationText.parentStory.index;
                dests[dl]["DestinationCharaterCode"] = myDoc.stories[dests[dl]["DestinationStory"]].characters[dests[dl]["DestinationCharater"]].contents.charCodeAt(0).toString(16);
                dests[dl]["DestinationPage"] = (hyps[destIndex]["Destination"].destinationText.parentTextFrames[0].parentPage != null) ?  hyps[destIndex]["Destination"].destinationText.parentTextFrames[0].parentPage.name : "Off the Page";;
                dests[dl]["SourceNames"] = [];
                dests[dl]["SourceIndexs"] = [];
                dests[dl]["SourcePages"] = [];
                l = hyps[destIndex]["Sources"].length;
                dests[dl]["Destination"] = hyps[destIndex];
    
                while (l--)
                    {
                        dests[dl]["SourceNames"].push(hyps[destIndex]["Sources"][l].sourceText.contents);
                        dests[dl]["SourceIndexs"].push(hyps[destIndex]["Sources"][l].index);
                        (hyps[destIndex]["Sources"][l].sourceText.parentTextFrames[0].parentPage != null) ?
                        dests[dl]["SourcePages"].push(hyps[destIndex]["Sources"][l].sourceText.parentTextFrames[0].parentPage.name) :
                        dests[dl]["SourcePages"].push("Off the page");
                      } 
    
            }
           else dests[dl]["HasSource"] = 0;
         }
     // if there's text selected search for destination anchors
    if ( app.documents.length && app.selection.length && mySelection.hasOwnProperty ( 'baseline' ) && mySelection.constructor.name != "InsertionPoint")
        {
            var mySelectionDestinations = [],
            // this is the unicode for the destination symbol
            q=0,
            indexAdjust = mySelection.parentStory.texts.itemByRange (mySelection.parentStory.characters[0], mySelection.characters[0]).characters.length-1,
            myStory=mySelection.parentStory.index,
            reg = /\ufeff/g;
            $.writeln("*********** Destinations in Selection **********")
            while (q != -1)
                {
                    q = mySelection.contents.search (reg)
                    if (q != -1) // when used in practise remove the if condition and pop array after loop
                        {
                            mySelectionDestinations.push(dests[myDestinationsSearchTable[myStory+"x"+(q+indexAdjust)]]);
                            $.writeln("mySelectionDestinations ["+(mySelectionDestinations.length-1)+"] = myDestinationsSearchTable ["+[myStory+"x"+(q+indexAdjust)]+"] = "+myDestinationsSearchTable[myStory+"x"+(q+indexAdjust)])
                        }
                }
            $.writeln ("################\rThese are these are the destinations in the selection: "+mySelectionDestinations+"\r")
            for (n in mySelectionDestinations) $.writeln (mySelectionDestinations.toSource()+"\r###########\r\r")
        }
    
    $.writeln ("%%%%%%%%%%%%%%\rThese are all the document's hyperlinks that have destination\r");
    for (n in hyps) $.writeln (n+"\t"+hyps[n].toSource()+"\r--------------------------");
    $.writeln("++++++++++++++++++++++++++++++++++++\r\r"+
        "These are all the document's hyperlink destinations with source and other properties\r");
    for (n in dests) $.writeln (n+"\t"+dests[n].toSource()+"\r**********************");
    
  • How to apply several styles of one-sentence paragraphs?

    I'm using paragraph styles, but is not useful because I am applying 2 different styles in the same sentence that does not work.

    To make it work, I selects the sentence, apply the style, for example 'xfont-regular"then I select the word in the sentence that I want to have a different style and I choose in the list perhaps italic police so that it looks like 'something like this'

    Of course, in doing so, I lose all the benefits of the use of styles p and of course, it's so your time. Is it possible to break down the sentence, now in the same line, so that I can apply different styles to it? and always keep the benefits to go just to styles and make the changes to the entire document that this style is applied.

    Thank you

    pchinique wrote:

    I'm using paragraph styles, but is not useful because I am applying 2 different styles in the same sentence that does not work.

    To make it work, I selects the sentence, apply the style, for example 'xfont-regular"then I select the word in the sentence that I want to have a different style and I choose in the list perhaps italic police so that it looks like 'something like this'

    Of course, in doing so, I lose all the benefits of the use of styles p and of course, it's so your time. Is it possible to break down the sentence, now in the same line, so that I can apply different styles to it? and always keep the benefits to go just to styles and make the changes to the entire document that this style is applied.

    Thank you

    As Diane King mentioned, nested character styles may work for your need. His example was an initial capital of fall (multiline first one or several letters of a paragraph.) Dropped caps are a particular type of nested style - always the very first one or more characters in a paragraph, high on two or more lines.

    To use the general type of nested style, you must be able to identify the words in the paragraph which gets the nested character style. For example, the third word, or the first two words after the first semicolon. If there is no model of Word (s) that can be identified by the post office or the sequence, it is possible that a GREP style can be used to find a common pattern of characters and apply a style of character to it, for example a phone number, the date, or the amount of currency that is identified by a dollar sign book, or yuan.

    Search Help for InDesign and Google "Style nested InDesign', 'InDesign grep Style' and similar (without the quotes) terms for more details. There has been many discussions of GREP on this forum.

    HTH

    Kind regards

    Peter

    _______________________

    Peter gold

    Know-how ProServices

       

Maybe you are looking for

  • Equium M40X: Where I can find repair?

    I have spilled wine on my laptop and need it apart but can't understand how as there seems to be something still holding it all together! I am trying to find a service manual for it! Any help will be very appreciated!

  • Tecra M4: Cannot get com-port working on Advanced Port Replicator III

    Hi all I bought the advanced III PA3314E-1PRP port replicator but could not get work com-port. It does not get listed in my equipment manager.Anyone has an idea why not? Thank you very much in advance! See you soon Infinito

  • 3 machines different blue screening after the latest updates.

    Original title: others recently have Windows XP are startup problems? 3 unrelated to computers are suddenly loop and unable to start in the mode of Three unrelated to computers (at home, in the work of the spouse and aunt) using Windows XP (Home and

  • help with black vista

    I am wanting to change my taskbar to look like vista not xp and I looked everywhere and finding no how chang I

  • Listen to music from portable to portable stereo

    I suspect that the solution I am looking for is not a Microsoft product, but the solution may have to delve into the bowels of the OS, so I hope it's always in the right place. I want to play music over WiFi and have a * very * small, lightweight rec