Research GREP question

Hello all, I generally consider myself as quite convenient to the GREP, but this one I'm not sure. What I need is to be able to search for parts of a text and put them in a paragraph style, and then use more searches to narrow down these results.

The text is composed of much documents and possibly in the sections an appendix and even a pregnant. each of them are separated by a point size and then a similar version of the same paragraph styles that exist in the text. in any case, what I need is to be able to clear any number of introductory research reaches the signifier of text indicating the section subordinated. Here is the idea for the annexes:

(? < = ^ APPENDIX ~ b) (. + ~ b) +(?=^DOCUMENT)

It works in both circumstances in the book however I think the culprit for breaking this research is the forced return and possible nonbreaking spaces. anyone knows how I can put in some type of if theres a return force ignore too type of situation.

Thank you!

Try changing the middle section to

(.*~b)+

I tried and I tried and it doesn't work... because I had a blank line in my text, which is not what your matches (one or more characters before the back...).

Tags: InDesign

Similar Questions

  • OOTB ExtAtt qualitative research - 2 Questions

    A few weeks ago I learned that some of the extended attribute lookup functionality is missing from our instance of v6.1.1.6.  This week, wee began looking for a small that fits our Spec category taxonomy.  We were unable to locate in Ext Att look lists.  This led to two questions.

    1. are there features that allow a category/subcategory/group Spec research ExtAtt?

    2. is there documentation: SQL query that lets you know what should be the STANDARD for qualitative research, white paper, manual, list?

    Thank you for your help.  Best, BeckieC

    1. we have not just out of the box. You can see Agile Product Lifecycle Management for Process Data Administration Toolkit Guide for instructions on creating a qualitative research custom.

    2 use the sql below to get all categories search customized as well internal search categories.

    Select * from commonLookups where category in ('CustomLookupCategory', 'InternalLookupCategory')

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

    (?<>

  • Simple GREP question

    the following case modifier applies to all the text in brackets?

    (\((?i) (all this text is modified\ is?)------)

    I was wondering how editors work with sub-expressions.

    A very good Question!

    -Yes, it does. The modifiers are fully aware of grouping, and so you can do something like

    ( ? i) Hello ((?-i) World) out there

    to find 'Hello' and 'out there' sensitive case-sensitive and case-insensitive 'world'.

    Modifiers should not be at the beginning of your GREP:

    Hello (? i) World (?-i) etc.

    find "Hello" case sensitive (by default), 'everybody' insensitive to the case and "etc (any character)" case-sensitive. This is equal to

    Hello everyone ((?i)) etc.

    Moreover, another method is to use this notation:

    Hello (? i: world) etc.

    which is a little more readable.

  • 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

  • Grep question

    Hello

    In Grep, we'll find "one or more times", but we'll find ranges [for example (\d{3-5)}]

    Kind regards

    MuraliVetha

    You must use (\d{3,5)} instead, between the minimum and maximum number of find with a comma instead of a hyphen.

  • GREP question - space before am &amp; pm

    Hello

    I wonder if there is a GREP which will find a number with an am or pm and add a space between the number between the am or pm?

    Compose my contributors to the magazine that I keep typing time as "19:00", for example, our style says there should be "19:00". This change by hand is a pain.

    Thank you!!!

    To find

    (\d+) (am: pm)

    Implement

    $1 $2

  • [CS3] GREP question

    I use the following code to find all compound words:

    (\w\w+)-(\w\w+)

    However, if the first word has initials, such as the "U.S.-China", it does not find it.

    So I change the code to be:

    (\w(.?) \w+.?) -(\w\w+)

    This method works. GREP is now any compound word if there are initials but when there is no initials, she also selects the last letter of the word from the speaker before. For example, what is in parentheses here is selected:

    e [e mid September]

    Why is that happening and how can I solve this problem?

    Thank you

    Tom

    It seems to work because the only period is a wildcard character 'any character'. So, it is the period in your 'US', but in addition it also matches any character, including a previous space, as you saw.

    Use \. to escape from the ordinary meaning of the period and change his behavior as the code of her litera.

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

  • An another GREP Question

    I am trying to use GREP to search for all rows that contain the following text: ""or the words "": then change to: ""or the words ": "

    The problem does not change, it is to find.  I use this string to try to find these words or phrases in brackets with the column at the end: ("") (\w+)(") (:)

    So far, it works very well to find what I want, with one exception.  He is unable to find all the words in parentheses, with what it can't find cases many sing the words.  As far as I understand (\w) should find "any word", but in this line, there is a + which means one or several times, yet he is only not one or more.  Could someone please help me understand why this does not how it appears to work?

    It does not work because several words have spaces between them, and you're not allowing for this.

    I suspect that what you really want to find is (".") + ? (''): although I have not tested. Which should match the shorter what whether in quotation marks and followed by a colon.

  • GREP question: How do \r and \z play at the same time?

    InDesign CS5

    I have a couple of styles GREP designed to allow development of large portions of the text much easier. In order to reduce the time back on and force things back, I created an unbreakable character style to be applied to the words at the end of a paragraph and after punctuation. To get rid of the massive gaps at the end of the lines, I have limited the number of characters in words and whenenver, some still get through, I apply a character style "Delete everything" separate. This makes it easier for our web service during the file conversion, the lack of forced returns and the addition of seamless formatting instead.

    So far, I have 3 GREP queries to apply:

    -\s\ < \w{1,7}\ > < \w{1,8}\ > [.!,:;] »] \r

    -\s\ < \w{1,7}\ > < \w{1,8}\ > [.!,:;] »] \z

    (? < =[.!?;:,"]\s)\ < \w{1,7}\ > \s\ < \w{1,7}\ >)

    The reason for the 3 is the end of the paragraph (\r) query does not apply at the end of a story (\z). I tried to combine the two using ' | ' between queries but it just ends up by doesn't work do not at all. Or with the ends as follows: (\r|\z)

    Is it possible to get this consolidated to a better query, so I need to copy and paste the three whenever I want to apply it to a style? It would be easier when you give the query to people, too, if she were consolidated. All the 3 together would be ideal.

    Thanks to anyone who can lend a hand.

    Use $ instead of \r or \Z

  • Of find/change GREP question

    Salvation of the Italy,

    I need to find each "2" in the words "CO2" and apply (only on the ' 2') index style.

    I can't figure out how. If I search all the 2 at the end of a word I also find 2002 and O2, if I find (CO) (2) and replace it with $12 style index applies to the "CO2" not only "2"...

    Can anyone help?

    Luca

    It's a classic: this forum for the shows "CO2 GREP" search this particular application is a good example of Advanced GREP trickery.

    Short version: you want to search for it:

    (?<>

    Read http://forums.adobe.com/message/1285612#1285612 for the long version.

  • CS4 GREP question (something lookaround)

    Hello

    I've been combing internet for a good half hour to try to find a solution to this, but nothing helped.

    The problem: I want to find all the text from the beginning of a paragraph to the 2nd tab.

    So using a real example, I want to what follows, in blue, are:

    < Tab > Q1 one) < tab >text...

    Note: it does not really matter if the second tab is found or not, because this GREP will be used to apply a character style "BOLD".

    I am currently using this lookaround:

    (?<=^).+(?=\t)

    Which works very well if there are only two tabs. But as you would expect, as soon as another tab is inserted all the text up to the 'new' tab is located.

    I can't work out how to sort, so any help would be much appreciated!

    See you soon

    This seems to work:

    ^.*?\t.*?\t

    Peter

  • Grep question: withdrawal dates and media

    I am trying to remove

    [01/01/1996-12/31/1996]

    whenever it appears in the text... the dates would all be different and how they sometimes appear.

    Is there a way to remove the square brackets and all that is within them?

    I did once and can't remember how!

    Thank you!

    for example:

    [Search: \[[\d/-]+\]

    replace by: nothing

  • GREP question, hard back &amp; tab after lines ending by (, space)

    I have a problem I have been hitting my head against the wall for hours trying to understand. I have pages and pages of remote codes, I need to format in a specific way. This specific way a problem that creates the right part of my columns to dazed with spots of spaces of comma, example:

    Abex 5011, 5286

    Accurian 5140, 5452

    ACCUSCAN 5005, 5014

    5003, 5004, Admiral
    5005, 5014, 5015, 5018.

    5025, 5035, 5040, 5041.

    5055, 5165, 5308, 5455

    I hope that comes out looking as I think

    Picture 1.png

    There is a picture if it would help. In any case. I need to look like this:

    Picture 2.png

    I hope this helps. The thing is I realized this before and I forgot to save the style. I thought I did. I don't have. Sucks. But I did as well as the lines ending with a comma and a space it would be tab and mandatory return.

    Please please help. It's my mind numb trying to figure out and I have pages and pages of these codes to work through.

    You can try something like this

    To find:

    , (\d{4}, \d{4}, \d{4}, \d{4})
    

    replace:

    \r\t$1
    

Maybe you are looking for

  • HP pavilion dv6 6150em: upgrade of processor on HP Pavilion dv6 (6150em)

    Hello My wife who is emotionally connected to this laptop needs an upgrade, and even so it is easy and very likely cheaper to buy the new laptop, we should improve as much it can. So it has already 8 GB of memory so that part is ok. I'm looking for t

  • How to solve the code Windows Update error 0x80004005 on Windows XP

    original title: how to solve the error code 0x80004005 in Windows XP Always receiving automatic updates of Windows but for several months were unable to listen to some online audio speech, especially "background" music / other noise drowns speech as

  • WiFi security

    Im trying to secure my wifi network. I use an ASDL Trust route and have a pc and 2 laptops connected to the homegroup. When I check the status of the wifi connection, he repeats to me it's uunsecured. I know that someone is piggybacking on the part e

  • Partitions disappeared after DiskPart

    I had 5 partitions under disk 1 320 GB, C, D, E, F, G, H, windows running on C 10 GB, I needed to extend the C:, I used diskpart to merge d: 63 GB on c:. 1. Select volume d: 2 remove this volume 3 - Select volume c: 4-volume range 5. output After tha

  • Do not call newspaper app?

    App works as it should. However, the screen prints and help journal show / say anything about the checkbox for 'car enabled House. ' What is this for and what happens with or without checking? I tried both ways and see no difference in the operation