GREP to select the entire paragraph

Hello

I had a search around on these forums and cannot find a solution to my problem and I was wondering if you could help.

Basically, I was starting to use GREP in style sheets to make some of my layout work is much easier, but have encountered a small problem. I'm working on the search criteria to select (and change the style of) an entire paragraph in one area of text doublet with multiple paragraphs with a single stylesheet applied. This specific paragraph always starts with "it is expected...". "but the rest of the paragraph may always vary. I'm very new to this so a combination to try the positive Lookahead CTE never seems to bring all the results I'm after.

Hope this is enough information and would appreciate any suggestions.

This GREP will find & select the whole paragraph:

^It is expected.+$

..  If you only need to apply a new paragraph style, you don't have to 'select' the whole paragraph, and

^It is expected

(anything from this string). You don't have to select the entire paragraph, because it is simply not possible to assign a paragraph style to 'just the found text.

But - on the other hand...

I was starting to use GREP in style sheets

-you're talking about GREP styles? If so, you need the expression 'full' but you must remember that you cannot change the paragraph style.

Tags: InDesign

Similar Questions

  • iTunes command-L shows the current song and selects the entire library

    I am running iTunes on OS 10.10.5 12.4.1.6.  command-L takes me to the current song, but select the entire library to play the next song.  In other words, if I chose a genre, artist or album to play and I command-L to see the current song, iTunes deselects the genre, artist or album and selects rather my entire library to play the next song.  command-L did not work that way - the genre, artist or album has been selected and the next song played would continue to be of the type selected, artist or album.

    Someone has a solution for this, or is this a bug in iTunes 12.x.x?

    Hello jjnorris,

    Thanks for this info. I know that having the command-L keyboard shortcut doesn't work only in iTunes isn't the Apple experience you expect. Command-L should show the currently playing song in the list according to shortcuts - using iTunes Web site.

    After testing, I wasn't able to reproduce your problem in the same version as yours. The next step would be to re - install iTunes for this refining: OS X Yosemite: reinstall the applications that came with your Mac

    Thank you for using communities Support from Apple.

  • Clicking on a video clip selects the entire clip, rather than the range.  I did the update and it still happens.  Help!

    Problem * by clicking on a video clip selects the entire clip, instead of cuisiniere.* *.

    I restarted my computer like new.  Lost the iMovie app.  Re downloaded in the App Store.  Now I have a crappy iMovie on the App Store application.  Then I made, I got the updated version and I did.  Always update does not resolve the problem.  I'm sucking in a hole because I need to make new videos for work and I can't.  In addition, I'm too broke to buy Final Cut.  In addition, all apple stores have a waiting list of 5 days before they see you!  Thank you Apple with a 6 bites taken out of it!

    I had a similar problem and it was driving me crazy. I think you press and hold the 'R' key now to select a range, otherwise, it will select the whole clip. I think it's a goal a feature and not a bug? Hope that helps!

  • How to get the current line or the entire paragraph?

    Hello.

    I am facing the following problem:

    Suppose I have the following in FrameMaker:

    It is a sentence. And (end of single line)

    There also this sentence. (end of paragraph)

    It is a sentence. And (back)

    There also this sentence. (end of paragraph)

    It is a sentence. And (end of single line)

    There also this sentence. (return)

    But there is also this sentence (end of paragraph)

    It is a sentence. And (end of single line)

    There also this sentence. (return)

    There also this sentence. (return)

    But there is also this sentence (end of paragraph)

    What I want is this:

    Download the text of the entire paragraph where the insertion point of the cursor is.

    However, when exist from the ends of the hard line I want to change their behavior.

    This is the behavior to the foregoing:

    For the first example of the paragraph if the cursor is either first or second line I want to get the whole paragraph.

    Paragraph if the cursor is in the first line, I want only the first line. And if it's in the second row, I want only the second line.

    The third paragraph if the cursor in the first or second line, I want the first and second lines must be retrieved in plain text. Also, if the cursor is in the third line I want only to the third line.

    For the fourth paragraph, it functions as the third paragraph. If the cursor is in the third row I get only this one.

    Could you please provide of the FDK in C++ to start with code?

    It's a puzzle.

    As you are in the forum script, I am related to this here. You must understand the FDK C++ code yourself.

    There's not much to tease my brain with it. You get the point where the cursor is and pick up the pieces of text more line via the GetText() method, using a bit field which includes the FTI_String and the FTI_LineEnd. Each end of the line has a modifier that tells you if it's a hard or a return. You also get the offset in the paragraph of the current position of the cursor, and then create the necessary strings from the array of items of text returned by the GetText method.

    If you want the full execution of the code, ask someone to program it for you and be prepared to pay for the work.

    Good luck

  • Magic wand selects the entire image

    Hey, I tried to use the magic wand tool to select an area before and it works. But yesterday idk what happened and whenever I used the magic tool want to select a specific area it maintains by selecting the entire image. How can I get this problem? Please answer as soon as possible. Thank you!

    Hi SepetMTJ22,

    I'll try to look at the suggestions of Charles. It is very likely that you have a full or empty layer selected, choose everything for you:

    Or you have a size of the sample that is too big, make sure that you have defined in a small enough sample point. One is recommended.

  • Rectangle does not select the entire image

    I used Photoshop 9 for quite awhile, but the rectangular mark does not work properly.  I don't stretch and select the entire image.  I reloaded the software without modification.  What I don't want to change that?

    Hello, look in your toolbar Option: you have fixed ratio and fixed size, selected in the Style: fall down. Select normal for a marquee 'free. '

    Also, make sure that you don't have a pen (if should be + 0 px like in my picture).

    You can also right-click on the marquee in the options even bar and select "reset tool", if the steps above do not work.

    I hope this helps!

  • Select the entire image as KING automatically

    Hello world

    When using pattern matching, trying first to select the area I want to explore. I use a camera which I take the picture and I want to analyze later. I want to choose the overview to find reasons (such as circles or rectangles). My problem is that I need this to be automatic, and I do not understand how to set up the return on investment. I tried to create a descriptor of KING, but I do not understand how to send the data as a whole.

    I have a feeling that's not very hard, but I think I'm stuck in a few thoughts. Can someone give me some tip to understand how to work with this?

    Thank you!

    Use this

  • Why can I not select the entire Repeater object?

    I have a feeling that it is a simple question:

    I use a Mac Pro with 10.10.5 and AE 2015.0.1 Release.

    When I add a Repeater to a shape layer, I can not select the Group of repeated objects (via the bounding box) ('parent' and 'children').  It only allows me to choose the parent.

    I'm doing something wrong here?  Something uncontrolled?

    I want to create long shapes and manipulate in 3d, but I'd really rather not do the whole thing just to be able to elect the parent object.

    Change this behavior in CC. If you want to see all the layers in a selection box, then you must either wait for a update or work on the CS6. Because I saw blue, I thought that you have been affected by a change in behavior in CC or newer. Personally, especially when forms are complex, I find it easier to be able to discern the basic form so I can double click and edit just this form.

  • Select the entire row in a multicolumn listbox

    Hi guees

    The value property, I would give the whole line of the corresponding noteworthy value.

    But how?

    It is a right click option on the list in edit mode multicolumn box.

    Make a right click-> selection Mode-> highlight the whole line

  • I'm cutting an image with the pen tool and when I make a selection it selects the entire image and not cutting. How can I stop this?

    The selection inverse basically when I don't want to do that! Any help would be great, it becomes very annoying.

    Thank you

    You will need to have the selected operation before you begin to chart your way?

    You can always for this instance to save time you Ctrl + Alt + I, and then return?

  • How to find the entire paragraph?

    Hi all

    How to find a Word and get a paragraph parent password.

    Kind regards

    Learner

    Try the code below

    myDoc var = app.activeDocument;

    var page = myDoc.pages;

    for (var i = 0; i)<>

    var pages [i] = page;

    var pageItems = page.textFrames;

    for (var j = 0; j)<>

    app.findGrepPreferences = NothingEnum.nothing;

    app.changeGrepPreferences = NothingEnum.nothing;

    app.findGrepPreferences.findWhat = "word";

    var myWord;

    myWord = pageItems [j] .findGrep ();

    for (var k = 0; k)< myword.length;="">

    Alert (myWord [i] .insertionPoints [0] .paragraphs [0] .silence)

    }

    }

    }

  • Select the entire document OVER something as something

    Hi, I'm a little used to Postgre and I want to do (I think that you will understand this example):

    Select *, id_person AS MyID FROM people
    = > I can do this in Postgre and selects just all OVER a column of id_person renamed myid
    = > I am unable to do this in Oracle, it just gives me "ORA-00923: did not expected cases" CRA *.

    Y at - there a way around this, I know there must be, but I couldn't google it autour so I would be really grateful if you helped the noob :)
    Thank you

    Published by: koszta5 on April 22, 2010 09:23

    Use an alias for the table, for example:

    SQL> select d.*, dummy d_1
      2  from   dual d;
    
    D D
    - -
    X X
    
    1 row selected.
    
  • Select the entire table in the procedure

    I want to create a procedure that selects all rows in the object with the following select statement:

    SELECT r.firstname, r.lastname,
    r.Address.streetname, r.address.city.postalnumber, r.address.city.cityname,
    (SELECT t.phonenumber
    Channels3 p, of the table (p.phonelist) t WHERE deref (t.phonetype) .phonetypename = "passenger".
    AND (p) REF = REF (r)
    ) as passenger.
    (SELECT t.phonenumber
    Channels3 p, of the table (p.phonelist) t WHERE deref (t.phonetype) .phonetypename = "mobile"
    AND (p) REF = REF (r)
    ) as mobile,.
    (SELECT t.phonenumber
    Channels3 p, of the table (p.phonelist) t WHERE deref (t.phonetype) .phonetypename = "percentages".
    AND (p) REF = REF (r)
    ) as Naing
    From channels3 r

    but I don't know how to do it correctly. Can someone tell me how can I do this? THX

    you would need a refcursor.

    create or replace procedure my_proc(pRc out sys_refcursor)
    as
    begin
      open pRc for select * from person;
    end;
    

    call this in c# code. You can store the result in a DataSet.

  • Script for the selection of consecutive paragraphs - can someone help me?

    Hello

    I have this script that works very well. He then applied following a Style to the paragraphs I selected with the keyboard in Indesign CS5:

    var style_name = "cabecalho."

    var doc = app.documents [0];

    var first_pstyle = doc.paragraphStyles.item (style_name);

    var cur_sel = app.selection [0] .paragraphs;

    cur_sel [0] .appliedParagraphStyle = first_pstyle;

    If (cur_sel.length > 1)

    {

    for (n = 1; n < cur_sel.length; n ++)

    {

    cur_sel [n] cur_sel [n - 1].appliedParagraphStyle.nextStyle = .appliedParagraphStyle;

    }

    }

    But before you run it, I use the keyboard to select the 3 paragraphs for the script. I know that it is possible to add code at the beginning to do the script select the paragraph where the cursor and the next 2 paragraphs and avoid manual selection because it's always 3 paragraphs.

    I don't know how to do this. Can someone help me?

    Thank you in advance. Greetings from Madrid

    It's a little rough, but you get the picture:

    var style_name = "cabecalho"var doc = app.documents[0];var first_pstyle = doc.paragraphStyles.item(style_name);var story = app.selection[0].parentStory;
    
    var cur_sel = app.selection[0].paragraphs[0];cur_sel.appliedParagraphStyle = first_pstyle;
    
    var nextpar = story.paragraphs.nextItem (cur_sel);nextpar.appliedParagraphStyle = cur_sel.appliedParagraphStyle.nextStyle;
    
    cur_sel = nextpar;var nextpar = story.paragraphs.nextItem (cur_sel);nextpar.appliedParagraphStyle = cur_sel.appliedParagraphStyle.nextStyle;
    

    Peter

  • Can I Auto format the first paragraph on each page of a document of 20 pages?

    So, I have a document that is in fact just a numbered list of 200 entries.

    There are 10 items per page, which makes it a 20 page document.

    Unfortunately, from time to time I give myself an extra entry to add, whose invariaby is in the middle of the document and not at the end.

    What I would do, if I add a new #20 to the document, the old #20 (now #21), pushed to the next page, would then automatically be formatted with the paragraph style to my 'Style'.

    I could not find out how to do this, which means, in the above example, I need to go to 18 pages and remove the 'Style' formatted as in each case after the addition, it is now the second entry on the page. At the same time, I must apply the paragraph 'Style' formatting for each first entry of all subsequent pages. If I only had to do from time to time, it would not be a problem, but this document is regularly updated, it becomes tedious.

    Nested styles does not seem to be an option, because I use the numbering that requires a paragraph break to differentiate each line number and nested styles seem to apply to each paragraph, except if I am doing something wrong here.

    I hope that this is sufficient to go.

    Sébastien

    You say that the formatting is different for each paragraph 20, reagardless of its content, and it is going to be the first paragraph on a page to go?

    As long as never depart you from the cycle 20 paragraph that it's actually pretty easy to do, just 20 paragraph styles, of which 19 are based on the other and differ only in the name of style. You then together "next" style attributes to run through the list of styles, then the following style for #20 is #1 and the sequence starts over. Now just select the entire block of text between the point where you have edited at the end and click right on the name of the TSRI in selecting paragraph style, then in the menu popup, choose apply and following Style.

Maybe you are looking for

  • Video graphics card question is blocking the

    I have mid 2010 15 "MacBook Pro. Randomly, it crashes during video playback. I had the logic board replaced, but the same thing happens. It is not covered by the apple repair program, but I want to know what I can do to pay so he can be fixed permane

  • HOW CAN I MOVE THE SCROLL BAR TO THE LEFT?

    I am left handed and the vertical scroll bar on the left. I used to be able to do this with firefox, but now I can't find how do in your help section. Help!

  • Why do I get an error message indicating units is not defined?

    Why did I get this error message? The unit Bar Delta-P of the string "[1] / IPT_Cylinder_1" is unknown. Define a new unit or an alias of the unit.

  • HP F2120 printer

    How to view the status of ink for this printer?  I had to download the HP Print & Scan Doctor so the printer would work with my PC HP Pavilion 17 laptop.  Thank you.

  • Look for the Wi - Fi connection?

    Hi guys,. I used the code below to check for the Wi - Fi connection I referred follow url:http://developer.blackberry.com/cascades/files/webinars/dealing_with_data.pdf bool available = false; foreach(QNetworkInterface interface,QNetworkInterface::all