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

Tags: InDesign

Similar Questions

  • Search the entire word to GREP

    Hi all

    I need a small request of forum.

    I need to find the URL starts with http:// and www. for my tool development

    with the help of the forum, I had the 'http '. + ? (? = \\s)|www.+?) ( ? = \\s) ' code it will find all the http:// and www. content in my paper.

    ______________________________________________________________________________

    But now my bug in my requirement is to find "www.+?" (?=\\s)"

    The problem is www.rediffmail.com, http://www.rediffmail.com

    I need to find the whole word. But now, County of www.rediffmail.com comes in twice.

    www.png

    Could someone please provide solution.

    Concerning

    Beginner_X

    Hello

    Try this:

    ( ? i) (http | ftp | www) \S+ [\l\u|\d]

    Might be useful:

    http://www.jetsetcom.NET/images/downloads/list_of_grep_symbols.PDF

    Jarek

  • The 'Search' under Edit function does not work. I can enter a search word, but nothing is selected, even if the word is on the wepage.

    I can open the function "Search" under Edit and enter a search word, but nothing has been highlighted, even if I see that the search word IS in the text on the website.

    How can I make this work again (he did until recently)?

    Firefox 3.6.17 on Windows XP SP3

    You have good match case selected in the search bar?

  • GREP expression - limits to the entire word

    To make a conditional search for cat or baby bed I know not part of the expression is c(a|o) t

    To search only the whole word instead of cot and cotton or cat, catnip, I could use location: beginning of the word \ < and end of Word ------> but suspect that there is a better way?                 ------< c(a|o) neckl >

    I think always much easier to memorize and read than \b.< and="" \="">

    using \b to delimit the boundaries of words in your example would be as follows:

    \bc(a|o)t\b

    I wonder if there is a difference in performance...

    Substances

    http://www.in-tools.com

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

  • After first load FF and I typed something in the search box, I type several words, then clears the box and I have to re-enter my search words. Why?

    Loading Firefox 8 I frequently get right into the search box to enter something I want. Usually I can type two or three words, then remove it from the box. I then re - type my search words. It seems that after the first load there is a delay the program refreshes then so what I typed in the search box, I have to enter a second time.

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

  • Cannot enter spaces between words in the Message Outlook Express rule

    I had to re - set up of operating systems Windows XP Pro on top of the existing system without reformatting the hard disk. Now, I noticed that when you create a new message rule, I can't enter a space by the shift to separate words in entry for example "of". I'm used to be able to type in a space between words such as the names and surnames of persons before the re-establishment. When I type the words as they appear as, e.g. "JohnMcKay" instead of "John McKay", which is what I intend to enter if Outlook Express is to process the mail entering this sender as I will. In the previous implementation of the operating system, there was only a user named 'administrator '. Now, there is always a single user with my name appears as an administrator of the computer. Maybe I shouldn't have typed in my name as the user of the computer during the installation and instead should have typed 'Administrator' only as a user. I don't know if that makes a difference in the consequences of the new organization of the operating system. I would appreciate any suggestions to overcome this problem.

    I have no idea if the way that you have installed XP has nothing to do with it. If so, I can't help. But, a few questions...

    1. Why should you use the Shift key? The space bar works for me.
    2. Why is it you enter the address of the person instead of their name?
    3. You can try this to see if the registry is damaged. It is common in OE.

    1. close OE, then in Regedit, navigate to this key:

    | - HKEY_CURRENT_USER
    | - Identities
    |-{GUID}
    | - Software
    | - Microsoft
    | - Outlook Express
    |--------------------5.0

    where GUID is the Global Unique identifier for your identity.

    2. under this key, you will find the following between subkeys
    others:

    | - Block senders
    |-----------------------Rules
    | - Signatures

    Select the key rules and delete it. Message rules will be empty, but you can rebuild them now.  Note This will remove all rules.

    If that does not do it, maybe it's the equipment and I don't have any additional advice.

  • Is Microsoft Word or Microsoft Works included in Windows 7 Home Premium?

    Œuvres of Word included in Home Premium?

    My mother just bought a computer with Windows 7 Home Premium 2009 and it has only the word pad. Win 7 does not come with Word works? I do the anytime upgrade? Thank you

    No win version includes works of Word or other programs that the base Wordpad and Notepad

    You can buy the programs that you need, or you can use the free www.openoffice.org

  • Word style GREP containing vowels

    Hi people out there

    Summer playing with GREP styles for a while but could not find solutions to this problem.

    I did a book with products inside so all the products had a different name. What I want to do is to have one of the vowels in the name of the product to be red.
    I'm to the point where I can style all the vowels in a word if for example I got the 'voltage' I 'o' 'a' 'e' red color.

    That is, I want only a character of these vowels coloring. Either "o" 'a' or 'e' but not all.

    How can I do this?

    discoamphetamine wrote:

    Looks great, but I want the vowel coloring randomly. Seems to me now that I need to do this manually because there is no rule for this with GREP or Nested styles.

    GREP can do, but I bet a script can.

    I think Jongware already has some randomization routines...

  • orthographic corrector hunderbird stresses skinned "words" that are not included in the message. What can I do to overcome without errors?

    The misspelled word is not contained in the message - all new messages

    Well, if you have added them to the dictionary, it will be a simple matter of clicking the button change in the spelling and of them up. I guess very few words that exist must be added.

  • How to check automatically check box a specific word is entered in a text field?

    I need help for a formula; I want to enter a specific word in a text field (labeled: food Group1).

    If I type the word 'Fruit', I want a check box (labeled: Fruit1) which appears later in my form to fill out.

    If I type the word "Grain", I want a box (marked: Grain1) which appears later in my form to fill out.

    Can someone please help me with a script that I can insert?

    Thank you very much!

    Kind regards

    Novice

    > I want to use capital LETTERS when you fill out the form

    Text comparisons are always case sensative.

    > Well, I need to all food includes Fruits, vegetables, cereals, meat, dairy products.

    > Appear which means, that when I type of fruit or grain in the text field, a check will "appear" in the box no fields are hidden or created. (not sure what you're asking here)

    On the forms fields can be visible or hidden. Appear implies that they are not visible or do not exist.

    > No, just a Word as one box of targets. for example, if I type "FRUIT" in the text field (labeled: Food Group), which should place a check in the box (labeled: Fruit1).

    If you have a limited number of registrations and specific words in a specific foramt, I would use a drop down box.

    I would like to use the 'Blur' action with the followting custom JavaScript:

    Fruits, vegetables, cereals, meat, dairy products.
    this.resetForm (["Fruit1", "Grain1", "Vegetable1", "Meat1", "Dairy1"]);  clear the result fields.

    test the text entered;
    var oCheckBox = null;
    Switch (Event.value)
    {
    case "FRUIT":
    oCheckBox = this.getField ("Fruit1");
    break;
    case "GRAIN":
    oCheckBox = this.getField ("Grain1");
    break;
    case "VEGETABLES":
    oCheckBox = this.getField ("Vegetable1");
    break;
    case 'MEAT ':
    oCheckBox = this.getField ("Meat1");
    break;
    case 'MILKMAN ':
    oCheckBox = this.getField ("Dairy1");
    break;
    by default:
    App.Alert ("No match for------" "+ event.value +"------"!", 1, 0);
    break;
    } / / end of switch.
    If (oCheckBox! = null)
    {
    oCheckBox.checkThisBox(0,true);
    }

  • Hello, Im trying to register and the words "Are you human" will not appear in the box so I can enter. Can you help me?

    I don't see the words at the bottom of the registration page. I tried refreshing, asked a new Word or words and I even selected try another type of challenge instead. I can't continue my registration because I am asked to enter the security word or words. They are white. Please help me with this question.
    Sincerely,
    Sandy Tickle

    You can try the following steps in case of problems with web pages:

    You can reload webpages and ignore the cache to refresh potentially stale or corrupt.

    • Hold down the SHIFT key and click the Reload button
    • Press 'Ctrl + F5' or 'Ctrl + Shift + R' (Windows, Linux)
    • Press 'Command + shift + R' (Mac)

    Clear the cache and delete cookies only from Web sites that cause problems.

    "Clear the Cache":

    • Firefox/tools > Options > advanced > network > content caching Web: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Firefox/tools > Options > privacy > "Use the custom settings for history" > Cookies: "show the Cookies".

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem.

    • Put yourself in the DEFAULT theme: Firefox/tools > Modules > appearance
    • Do NOT click on the reset button on the startup window Mode safe
  • Research, including several key words

    Is there a way to make that contains all the words? The full list?

    Sorry if this has been asked before, which I'm sure there! Just did a search curosry and really could not find info on it?

    Thank you

    Mike

    In library filter, enter all the words you are looking for and go to "Contains" to "contains all the»

  • Text with a hyphen (which is imported from the word) won't change font of what it was in Word

    I create a book by importing the text in a Word file. When I met a word that is a hyphen, the hyphen characters is stuck in the police since the Word file - I can't change it manually, using styles, or by changing the hyphen glyph itself. If I put any other glyph where is the hyphen, the police attaches, and it seems the road dictates the style, but not the hyphen (even when I change the font in the glyphs Panel). If I delete and retype it, it changed again the police. It seems that there is some sort of setting that makes the hyphen to act like this, but I can't understand what it is. To be clear, it's the entire word that is stuck in font of the word, not only the link file. How can I made the hyphen and the Word change fonts and obey his style?

    If I put any other glyph where is the hyphen, the police attaches, and it seems the road dictates the style, but not the hyphen (even when I change the font in the glyphs Panel). If I delete and retype it, it changed again the police.

    It behaves as if there were a GREP Style in the paragraph style changing the text on either side of a hyphen.

  • GREP expression for the last line, followed by the column break

    For all of you who read this, thank you for taking the time to help. I'm a noob to JavaScript and GREP expressions, so thank you for all your time and help with this.

    I wrote a JavaScript script to help my company format some of our work more quickly. We have pre-made models with character Styles all implemented (body, header, BodyItalic) etc.

    My script works almost perfectly to identify patterns and apply the correct character style.

    However, my expressions do not work perfectly and last line of text in the text box (linked), which has a column break, do not get to the format.

    This last line is always different depending on the document. So I can't put in the constants. They are always variable.

    My current GREP expression is. + ~ M which, theoretically, should find any character who repeated one or more times and is followed by a column break. The problem is, he finds that the last two characters on the line which are followed by a column break.

    for example

    Tribute would be tribeTE

    Eulogy would be EuloGY

    etc etc.

    As you can see, they are not always the same words and could even be a short sentence so I can't just look like some words.

    I am trying to establish why the GREP expression does not. Maybe I use GREP evil symbols? I don't know, so any help would be appreciated.

    Thank you in advance.

    Scorpio

    This column break thing seems bugy. I have no idea why only the last two characters are found. If I try to find an entire word with \w+, which does not work. I get results as weird if I try to \b\w+~M. the good news, is that InDesign is no crash, here.

    However: There is no GREP to search a specific line, so I'm looking for a columnbreak and then for the line which belongs to the aware found:

    app.findGrepPreferences = app.changeGrepPreferences = null;
    app.findGrepPreferences.findWhat = "~M"; 
    var found = app.activeDocument.findGrep();

    if (found.length > 0) {
    for ( var i = 0; i < found.length; i++ ) {
      var curFound = found[i];
      var curLine = curFound.lines[0]; 
      curLine.fillColor = app.activeDocument.swatches[4];
    }
    }

Maybe you are looking for