Trouble with Grep Styles

I'm trying to set up a grep style in my paragraph styles.  I am wanting this to "BOLD" or chemicals that it will not be because of the () is there a way to do this "BOLD" in a grep style?

any time you need a character that she also an operator in GREP, you can escape it by using-in front of her

chemical\ (be)

Tags: InDesign

Similar Questions

  • Find whole words with Grep Style

    Hi, need some help with this, he cannot know.

    I need to find some words in the style of a paragraph. I have created a character style to 'be bold' and you want to paraghaph style 'ainesosat' to use it when there are words in the paragraph.

    the words are for example

    Rasvaton maitojauhe

    Maitojauhe

    Juustojauhe

    Kerma

    VOI

    I know I can find these with this string:

    Rasvaton maitojauhe | Maitojauhe | Juustojauhe: Kerma. VOI

    but I don't want to find for example:

    Voimakassuolainen

    -includes "Voi".

    Also the words could begin with capital letter or not. I can of course dublicate chain and do both, with or without capital letters, but if there is a better solution for it, I'd be happy to hear...

    Tero

    1. add parentheses and word limits:

    \b(rasvaton maitojauhe | Maitojauhe | Juustojauhe | Kerma. \B voi)

    2. Add the flag "ignore case" at the beginning:

    (? i) \b(Rasvaton maitojauhe | Maitojauhe | Juustojauhe | Kerma. \B voi)

    See InDesign help | Find/replace for GREP options. You can use almost all the search commands in a GREP style, but does not replace those. ('Almost', because a GREP style, by definition, is limited to a single paragraph to work, and tempting to cross paragraphs automatically him will fail.)

  • InDesign: Help with Grep Styles (do not always work)

    I found this excellent tutorial which allows styles GREP simulate the functionality of the HTML tags.

    So that the cat sat on the Mat < /b > < b > will appear in InDesign as: the cat sat on the Mat.

    The problem is that this does not always work.

    Here I have two text elements that are displayed on pages separated into separate text boxes. Both have the same paragraph style applied to them (who use the technical HTML GREP)

    < b > "Make fool me super fast, birthday card from Jonathan!" < /b > add Ben.

    Holly wand Glitters and brushes lift into the air.

    "It works!" shouts Holly and Ben.

    < b > "Humpy, lumpy, bumpy, do."

    Nice and comfortable King thistle. "< /b >

    "Thank you, you can go now."

    Nanny Plum,' said King thistle.

    The first paragraph works perfectly. The < b > tags are hidden and the bold character style is applied.

    Paragraph 2 does not work. The < b > tags are hidden, but the characters are not "BOLD".

    This could be the cause?

    Here is my code GREP:

    Apply the Style HTML to text: (< \/*b >)

    Apply bold to the text: (< b >). + (< /b >)

    (Style HTML is used to hide the HTML characters. "Style"BOLD"makes"BOLD").

    Thanks for any help that can be offered

    Is there a paragraph return after 'make '? You can check by turning on the view-> display-> Normal Mode and then Type-> display hidden characters (not sure on the last of them, my phone isn't InDesign on it).

    GREP styles may cover several paragraphs. So if the opening tag "BOLD" is in one paragraph, and the closing tag is in the second paragraph, it'll never work.

  • days with grep styles

    I prepared a style and I want to when the text is written one day followed by a comma et space is assigned "" this style, without having to search every time manually recurrence " " "day" ()"""Monday," ""Tuesday, " etc.)." I can do with styles grep ?

    Hi, try:

    (Monday |) Tuesday | Wednesday | Thursday | Friday | Saturday | (Sunday), \s

  • Help with GREP

    Hello world!

    I need assistance with grep style.

    I want to apply a character with "BOLD" for each text style, in a specific paragraph style, Reed media before uppercase.

    For example:

    -Za ispušta proizvod u CIJEV ZA OBLIKOVANJE vaganje Sustav (1)...

    Must be:

    -Za ispušta proizvod u CIJEV ZA OBLIKOVANJE vaganje Sustav (1)...

    Can someone help me?

    Try this one: find \u[\x20\u]+? ( ? =\()

    In other words,.

    \u followed by capital

    [\x20\u]+ one or more space (\x20) or a capital]

    (? = \x20\ () followed by a space and an open parenthesis - but don't capture the spece and the parenthesis)

    In the format change Panel, set "BOLD".

    Peter

  • GREP style: Find all the letters between

    I am trying to create a GREP style to deal with a signature of two lines like this:

    -Name of the author,

    Source cited

    I want the name of the author to be caps/sc and the font that I use has an established expert, so I need to replace only the lowercase characters of the name of the author with the sc. character style

    So far, what I did is creat a character style that is defined as the Roman. I then to my grep styles:

    peps.jpg

    The italic style applies to the 2nd line (after a forced line break) very well.

    However, I can't do it sc style to apply to my lc between the em dash characters and the comma. I can get the sc to be applied to the whole line, if I use '. ' for any character, but "\l" does nothing for me...

    Someone at - it advice?

    Thank you

    Chris

    Thanks for the help. You led me in the right direction.

    I was doing too complicated and I still don't have a firm grasp on what GREP may or may not do.

    I solved the problem with GREP styles:

    The reason that I can't apply sc for the first line is because the font I'm using is old and includes a set of expert. In police expertise, there are only small capitals. Strikes in uppercase are reserved for the factions, currency symbols and other glyphs not standards.

    Best,

    Chris

  • I can target fat with GREP - in dialog paragraph styles?

    Hello.

    I have a number of paragraphs which are mainly "regular" (as the font style: ordinary) but they also have a few bold throughout.

    I'm doing a paragraph style that will apply a character style to text bold using GREP.

    Is there a GREP code for this (to not apply the character for the "BOLD" style and nothing else)?

    I know it's easy to do in the Find/Replace dialog box, but I wonder about the paragraph style dialog box in the GREP section.

    Any help would be greatly appreciated.

    Hello

    Indeed, it is easy to do.

    You do not have to use GREP, you can use the query to search/replace text.

    Start by creating your character for "BOLD" style. (Let's call it "CBold")

    Then create your paragraph style, with your desired settings (let's call it "PReg")

    Finally, click on search it icon 'specify attributes to find', 'Bold' and replace it with character styles and paragraph previously defined:

    Who will do the job.

    Please note that this "erases" all text attributes (for example, italic...) in your paragraph.

    Also, it will apply changes to paragraph all if no style is specified in the search for options: including securities i.e.

    So, be careful when you use this method...

  • By selecting several paragraphs with GREP

    Hi all

    I am having trouble with a search GREP in JavaScript.

    The following expression is lying to find any text with a certain style of paragraph that begins by "Note: As you can imagine, the expression is lying find info notes that can be isolated, or be followed by another note, in this case, the second note should not be included in the selection.

    (^:)(.+)((.+)(\R)(^Note:)(.+)) note *)

    Now, when I try to the expression in the GREP find/change in InDesign, it works fine, but when I put it in the script it selects only a single paragraph. Is it possible to choose more than one paragraph?

    thanx

    An interesting variation of the expression above:

    (? s) ^ Note: (.) (?! Note :)) *.

    Given a text:

    Note: the number

    Note: This too. ¶

    This is the first "Note:" and its two more hard returns, after that the next "Note: My previous GREP would be only the second score.

  • GREP style - apply character style to the opening and closing parentheses surrounding a 0 (but not 0)

    Hello

    I'm relatively new to GREP style and will have to put in shape about 600 postcards containing various data (via the merger of data), including phone numbers. Consider the following data set:

    1. + 44 (0) 123467800

    2 (©) copyright

    3. (name of the program)

    I want to tell Indesign to stagger the opening and the closing parenthesis of the baseline (with a character style), but only the bracket that include a 0 and, possibly, without affecting the 0 value between them.

    Seems like an easy task, but it is impossible to find a solution. Could someone help?

    Thank you very much

    Antonio

  • find the percent with grep sign

    Hello. I know it must be simple, but I can't seem to find it: how to find the percent with grep sign? Or % or -% nor [%] seem to do.

    Thank you

    There is nothing in particular the % sign: you should be able to find it by using one of the three methods you have tried. Have a good overview of the control panel search/replace. Don't find it what domain contain only the %? No space lurking here? It is on a locked layer? You have a style of paragraph or character set in the Panel "Find format '?

    Peter

  • Temporarily stop the execution of grep styles

    Hello

    I still bring a book with lots of texts in three languages. I have several paragraph styles with up to 10 grep styles. So my short of very slow InDesign files, I think that cause grep styles in my paragraph style.

    My question is, is there a way to prevent the grep style to run in the paragraph style without removing them?

    Concerning

    Sascha

    Hi Sascha,

    Add an asterisk in front of the GREP expression: *.

    Uwe

  • Find the last characters with grep

    I'm lousy with grep and didn't find the solution with google, we will so ask here (help me, please...)

    I need to find the last 7 characters in a paragraph and assign a character style "not break". I know that all the rest, but what is the string to find the last 7 characters (white space included, numbers and letters).

    Thanks in advance.

    try searching. {7} $

  • Grep style short (non-greedy) modifier ignored

    I'm looking for confirmation of a possible bug I've had problems with InDesign version 5.5 upwards through the DC 10.0.0.70.

    What I'm trying to do is apply a character by a rule of grep style in a paragraph style that matches all through the first colon in a block of text. The goal is to make this text bold. My rule of grep is

    .+?:

    which means corresponds to one or more of any character, the shortest correspondence (non-gourmand in the terminology of grep), followed by two points. But the non-greedy modifier is ignored and it does match the text up to the last two points.

    Here is a screenshot.

    Screen Shot 2014-10-02 at 5.05.14 PM.PNG

    I came up with a work around, but it would be nice to make it work properly. I will report it as a bug if others confirm having the same problem. Thank you.

    It works just like it is supposed to - you aren't limited to the first occurrence of the colon, so it matches the first string through the first colon, then matches the following string until the second colon and so on.

    If you want to apply from the beginning of the paragraph to the first two points, you can use ^. + ? :, but it would be much simpler and more effective to use regular nested style through two points 1.

  • GREP style allows text in square brackets

    I'm just starting to understand some ways that I can use GREP in the messy confusion of the documents that I have to work here, so patient with me...

    We have a load of technical writers here who do not necessarily have a lot of experience InDesign, but be used to enter text. A text must be "BOLD" to attract the attention of the end user, so I thought I could use GREPs for apply a bold style to certain words and phrases that occur in any of the documents. Such a forum is intended for users to renew the clips or bolts or similar, so I did what I think is a GREP which finds 'renew' and applies to every word between it and a return or a period (but exclude the word "renewed", because the other permutations that follows):

    renew (?.) Ed.*?). +(\.| \r)

    That works very well in most places. But I fell on cases where there is an image reference in parentheses after the occurrences of 'renew' in places (such as "you must renew the clips (see figure 6)'") and I would like to exclude the media and their content of style. But as a beginner, I had a little if bogged down hit brick walls trying to find ways to do it. Can anyone offer a suggestion?

    Thanks for any help.

    Doug, you use GREP (to find and replace) or GREP Styles? (by your description of what it does)

    If GREP Styles:

    1 no need to use (\. | \r) at the end GREP Styles automatically stop at the end of each paragraph.

    2. no need to use (?) Ed.*?) a simple (?.) ED) is enough here, as long as this corresponds to what didn't really matter if / what follows.

    Try it shorter:

    renew (?.) ED) [^ ()] +

    -This text makes bold to 'renew' and the end of the paragraph * or * up to the first parenthesis.

  • About GREP Style (2)

    Hello

    Imagine the following line and how I want to treat:

    "It is on the left side a bwatertiful blEU House with pink you'llow doors and windows. On the right side, we find a beautiful green horse black stIArs and a pue roof rpl! »

    What I mean: some words where the vowels are in bold, somewhere the consonants are in bold, but you can not systematize it.

    In this case, a way to speed up the process to deal with every word? Thanks in advance!

    Piece of cake. He needs 2 character styles (well, one if you want everything is the same: "BOLD") and 2 styles GREP, as well as two invisible characters that you can easily insert without interrupting the flow of regular text. I used "End nested Style" (~ h) and "Non-Joiner Invisible" (~ d) here. the two have no default keyboard shortcut, but those are easily added if you do a lot of them.

    GREP Style 1: [aeiou](?=\w*~h)

    GREP Style 2: [bcdfghj-np-twxyz](?=\w*~j)

    ... I wonder how correct it is to insert 'y' is the consonant or a vowel list. It is not a vowel in "yellow" is? If there is something simple, such as "It's a consonant followed or preceded by a vowel", you can add a style fat isn't (or in my example is not highlighted, by cutting the underscore) for

    (?<>

    (Just thought of this after you have created the image below. He works for switching * off * for vowels, but not for * on * for consonants. Maybe that has need of a 4th GREP).

Maybe you are looking for

  • How can I access my Photos when I can't use the screen

    I have an iPhone 5 which is really damaged. The digitizer is too bad I can't see or have the sensitivity to the touch on the screen. I really want to save my pictures on my computer, or at least access so I can download my current pictures. I have al

  • Satellite P200-1FZ: how to insert the smart media card into the card slot

    Hello I have read the slim manual, and I can't find any info on the card slot. (other than where he lives on the laptop) Could someone tell me please how to insert my card SmartMedia? the slot is huge and I'm worried about losing the card inside the

  • Pavilion 15-n013TX: RAM UPGRADE

  • applenews

    Since the app store on my iPad, I look for "Apple news App" in the section "exploring." The first application that appears has an image that says "News" with an explanation: "News offers the best stories from your favorite sources, elected for you. (

  • go to the next iteration of loop for and continue execution of the previous iteration

    Hello everyone, I want to run a loop with an offset to each iteration. I explain: I want to run a task multiple times (for loop), but with a variable delay in each iteration. Thus, if we put t = 0 before you run the loop and I use 3 iterations. I put