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

Tags: InDesign

Similar Questions

  • 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

  • Firefox's search function seems to have become the HATS or caps-no specific, so that typing a word in non-caps will not find matching words with one or more uppercase letter.

    Find seems to have changed in Firefox. Before, when making a (CTRL + F) to find, research was not specific or non-specific to the caps CAPS. "In other words, if I typed in"firefox"(without ceiling), it will find the words"firefox,"Firefox", or "FIREFOX", regardless of capitalization. Now, however, the function finds will only match exact same capitalization. Totally, this undermines the usefulness of the service and is a major concern. Please fix.

    This has happened

    A few times a week

    == I noticed in during the two or two weeks.

    Make sure that the "match case" box in the find (Ctrl + F) bar is not activated.

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of your modules is causing your problem (switch to the DEFAULT theme: Tools > Modules > themes).
    See the extensions, themes and problems of hardware acceleration to resolve common troubleshooting Firefox problems and troubleshooting questions with plugins like Flash or Java to solve common Firefox problems

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

  • 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

  • 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

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

  • 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

  • Enter an entire word in GREP to include apostrophes

    Hello

    I want to run a GREP search on a paragraph to find whole words. But this research should include the apostrophes before, in the middle or after the word.

    For example, the GREP search should capture the following words that involve various uses of apostrophes:

    n ' was not

    -Goin '

    -rock ' n roll.

    -because.

    I tried the following GREP:

    \<\w+('??)\w+\>
    
    

    But it captures only words catches with apostrophes inbetween (wasn't, Don't) but avoid words with apostrophes in the end (Goin ').

    Thank you

    -Tushar

    Hello Tushar,

    you could split the expressions:

    ('\w+')| (\w+'\w+)| (\w+')| ('\w+)

    Roland

  • Loss of the GREP styles

    I had created a whole list of GREP-styles and suddenly I realize that they're all gone. Maybe it happened during the synchronization of the settings, either by installing Indesign 2014. Anyone know where the GREP styles created by the user are stored? I could try to get through my time Machine.

    GREP styles are the attributes at the level of the document that you should be able to load from an earlier document. Saved grep queries to search for? Change, however, are stored in the user preferences. You should find a folder named queries to search - replace in your profile or library in the same way where the preferences InDesign Defaults file is stored for each version. You can copy the entire folder to a new version, or only selected queries. For more information, see replace your preferences

  • REGEXP_LIKE and search for whole words in a string

    Try to find a way to use regexp_like (in 11 GR 2) to find whole words, not partial, within a string.

    For example:
    create table regex_test (id int, name varchar2(30));
    
    insert into regex_test values (1, 'John featuring Jane');
    insert into regex_test values (2, 'Featuring John and Jane');
    insert into regex_test values (3, 'John and Jane');
    insert into regex_test values (4, 'John featuring');
    insert into regex_test values (5, 'John with Jane');
    insert into regex_test values (6, 'John and Jane within intro');
    The goal here is to find all names that contain the words 'featuring' and 'with '. Case-insenstive. Does not not on ' in the '.

    We are looking for hits on ID 1, 2, 4 and 5 and have not been able to find a good example there.

    Thank you
    Todd

    Hello

    Here's one way:

    ...
    WHERE     REGEXP_LIKE ( ' ' || name || ' '
                  , '( featuring )|( with )'
                  , 'i'
                  )
    

    This assumes that the words are separated by spaces, no legs or punctuation. If this isn't the case, then it's a bit messier; Maybe

    WHERE     REGEXP_LIKE ( ' ' || name || ' '
                  , '(\Wfeaturing\W)|(\Wwith\W)'
                  , 'i'
                  )
    

    \W means anything that is not usually a part of a Word.

    Thanks for posting the CREATE TABLE and INSERT statements; It's very useful!

    Published by: Frank Kulash, February 8, 2011 14:17
    \W version added

  • Export InDesign text in a text file with paragraph styles

    Hello

    is it possible to export text in InDesign in a text file with included paragraph styles?

    I want not only to include the formatting of the text that I must have still all paragraph styles applied to the text after the export.

    Thank you

    With the text tool in the ready to type text block. Choose file > export > RTF (Rich Text Format)

    For all text to export text all images must be strung. If they don't you will have to do them individually.

    If you just want a select few paragraphs then highlight and choose then export > RTF

    Which can be opened in Word with all styles of tact.

    It is unclear with your workflow is here, can you elaborate on what you are trying to do?

  • GREP styles - excluding whole words

    A project of datamerge we were experimenting GREP styles to see if we can get the text to change the names automatically.

    We basically data that came with "Firstname Lastname" in a few places. In only one of the occurrences we want to remove 'Lastname' then thought we would experience a GREP style for this. We use a character with a fill of none style to achieve.

    So we have "Dear Firstname Lastname," and you want to make a style of GREP that is just "Lastname", but leaves the "Dear" and "First name" single. Targeting "Dear" and "First name" with a GREP style was easy. "Dear\s\S +" is "Dear" followed by a space, followed by anything that is not a space until it reaches the next space. However, applying the same logic to exclude it was not so easy.

    We tried a postanalyse to say look for "Dear" followed of a Word and exclude them, then apply the style to the rest of the line. We started with (? < = expensive) \S+ who worked to exclude just 'Dear' and apply the style to the rest of the line, but when we added the rest of the expression to create (? < = Dear\s\S +) we got nothing? We were able to get (? < = Dear\s\S) \D+ to work. It excluded "Dear", more space and the first letter of "Lastname", but we can't seem to find a combination that will include the whole second word ("Firstname").

    Maybe it's that there is an even easier way to do that simply target the first two words of a paragraph, but we have not been able to find a way to do either. Maybe we're just too ask many GREP styles and it is not possible... but we approach!

    I know it's probably easier to address this issue in the data by doing a new field in advance, but we don't have that luxury this time.

    Thanks for the pointers that anyone may be able to give.

    Steve

    OK, I guess that I do not take your sense of the first time through. Can I use the deprivation of sleep as an excuse?

    Of course, that's just my opinion, but I think that if there are some styles to make, either nested or GREP, we should limit the paragraph style so that those paragraphs that would be greetings, even if it means using a realtionship of style based on the isolate. Given the description of the problem where the paragraphs seem to begin with 'Dear', I'd be willing to bet that there no cases of paragraphs in this position in the merger that doesn't start like that.

    And I really don't like your solution.

  • Delicate required... GREP style using a subexpression not staining to find space characters

    I have the section headers in my paper which have a paragraph that are applied to their style. They are always of the form \d\.\d\.\d\.\d(\t) follow in a short sentence of the text. For example:

    5.2.2.1 the rain in Spain falls gently on the crane

    I'm looking for a style GREP can highlight the character of each word with a character style, but not the spaces between words. It seems to imply nested iterations which I do not know how to do, including an expression not staining. Well, it isn't working how I think it should...

    5.2.2.1 the rain in Spain falls gently on the crane



    I think that this style of GREP should get it: (? < = \t) ((\S) +(?:\ s)) + positive looks on the tab between the last digit of the section number and the first word, but the hair subexpressions are not spaces to underscores, instead, I find myself with all the head text highlights as follows:


    5.2.2.1 the rain in Spain falls gently on the crane

    "Nonmarquantes" subexpressions mean nothing to InDesign; You can only use in search operations and replace GREP.

    There may be a single GREP (complicated) style that works, but it might be easier to point out everything and then apply a second GREP style that takes away the underlining of your spaces.

Maybe you are looking for

  • Pair two show Apple at each of the two iPhones?

    I have two watches of Apple and two iPhones, and more a 6 and a 6 s each with IOS 9.3. Watches have been upgraded to 2.2. Each watch is now matched with one of the phones. I am trying to pair the two watches in each of the two iPhones using the new 9

  • a 6500 - unable to connect to web services 710n

    I've been on web services and receive printing applications.  Suddenly, my apps stopped printing.  I tried all other solutions, reset default, etc. and still unable to connect to web services.  It requires a power of attorney.  I put the proxy of goo

  • Possible file corruption: controls/scroll bar disappearing

    I worked on a VI using LabView 8.6 for awhile and when I opened it today I noticed that although scroll bars are visible on the façade, the rectangles that you enter in the scroll bar to move upward or downwards are missing. I tried to solve this by

  • IVI range control and coercion

    Hello I'm working on an IviScope driver for a scanning module. I have a question that keeps me busy. Take, for example, the IVISCOPE_ATTR_VERTICAL_RANGE attribute. My instrument has 8 fixed vertical lines. If the application selects a vertical range

  • Screws missing Acer Aspire S5-391

    I will try to summarize what happened here: My laptop is out of warranty, already, I, however, he was sent to a repair shop that was supposed to be authorized by acer, because the fan starts to make a lot of noise, this being a ultrabook I didn't wan