Find followed words of periods using GREP

Hello

I have a GREP code that tries to identify all the words followed by periods.

To avoid the capture of emails and Web sites, I used some negative ass.

(? <! blatchford\.) ( ? < ! \d ?) (? <! www\.) ( ? < ! \.co\. ?) (? <! \.com) (?<!@\.) \w+?\.

For some reason any he says no matches found, but I can't work out why.

All boards of a person knowing most of would be great

AHA! Yeap! is not clear!

(^ /) is not a grep code! It's my signature as Jedi [don't you recognize the Cape, the hood and my lightsaber?  ]

About your code, there are several reasons that may not work!

It is difficult to find the URL, but there are several ways [complex codes] success [see Google].

If I was me, I'ld do it in 2 steps (but in 1 light-saber struck using the Multi-Find/Change!  )

1 / find all URLs and apply a condition, which I will call "URLs".

2 / play this simple regex: find groups of characters (without any space between them), followed by a point AND applied unconditionally [we applied a "URLs" condition to the URL, it finds them!).]

(insert in the areas of 'change' what you want to do with the goals!)

(^/)

Tags: InDesign

Similar Questions

  • Find the words (wild cards) using regular expressions

    I'm testing to see if the words are present for revision 1 of a drawing of the cartridge.

    The script search the digit 1 followed by a date, a title, and 4 sets of initials.

    The number 1 is static, (date, title and original are the cards that they are different for each design).

    I use regular expressions to match the words.

    The regular expression highlighted in blue is the number 1 and the date.

    Him remains highlighted in orange does not match the title and initials.

    If anyone can help with the regular expression that is most appreciated.

    Once I got that work will add the form fields for the initials, noting only the console at this point for the tests.

    numWords = this.getPageNumWords (0);

    number of words on the page

    loop through the words on the page

    for (var j = 0; j < numWords-1; j ++)

    {/ / get the pair of words to test}

    ckWords = this.getPageNthWord (0, j) + ' ' + this.getPageNthWord (0, j + 1); test words

    Check if 1 26.05.16 THE STRENGTHENING REVISED MM SB AE GM word string is present

    If (ckWords.match(/ ^ 1\s [0-9] {1,2}.)) [0-9] {1,2}. [0-9] {2} \s\w+(\s+\w+){1,7}/))

    {

    Console.println (ckWords);

    }

    }

    You can use something like this:

    ckWords = this.getPageNthWord (0, j) + ' ' + this.getPageNthWord (j, 0, + 1) + ' ' + this.getPageNthWord (0, + 2 j) + ' ' + this.getPageNthWord (0, j + 3) + ' ' + this.getPageNthWord (0, j + 4) + ' ' + this.getPageNthWord (0, j + 5) + ' ' + this.getPageNthWord (0, j + 6);

    If (! ckWords.match (/ ^ 1\s\d {1,2} \.\d {1,2} \.\d {2} \s\w+ (?:-s + \w +) {1.8} \s([A-Z]{2})\s([A-Z]{2})-s ([A - Z] {2}) \s([A-Z]{2})$ /)) ckWords + ckWords + "" + this.getPageNthWord (0, j + 7);

    If (! ckWords.match (/ ^ 1\s\d {1,2} \.\d {1,2} \.\d {2} \s\w+ (?:-s + \w +) {1.8} \s([A-Z]{2})\s([A-Z]{2})-s ([A - Z] {2}) \s([A-Z]{2})$ /)) ckWords + ckWords + "" + this.getPageNthWord (0, j + 8);

    If (ckWords.match (/ ^ 1\s\d {1,2} \.\d {1,2} {2} \s\w+ \.\d (?:-s + \w +) 1.8 ([A - Z] {2}) \s([A-Z]{2})\s([A-Z]{2})\s {} \s([A-Z]{2})$ /))

    {

    ...

  • How to replace the spaces before and after a Word with tabs using GREP or search - replace

    Here's the scenario:

    I have a paragraph with spaces (can be 1 or more) at the beginning (before the first word) and a single space after the first word (is be a number if this matter - which may be a single digit or more).

    I'm looking to replace the spaces before each paragraph with a single tab and replace one tab so of space after the first word (number). In addition, I would like to apply a paragraph style to it.

    Thank you very much in advance for anyone who can find a solution. It sounds like a solution of some sort GREP but can't nail. Thank you.

    ^(\s+)(\S+)(\s+)

    and replace with \t$2\t and define the change of setting fit your style.

  • GREP: Find a word followed by a word hyphen

    Try to set up a GREP Style

    "adjusting the previous year" - don't want to cut adjustment

    'self-review/management' - don't want management to cut

    "use value calculation" - do not want cut calculation

    I thought I could set up a GREP style so that any word following a manual hyphenation Word can be assigned to No Break.

    Pretty stumped on this one.

    It seems to work for me with simple words of hyphen, but I have not tested with multi-trait of Union, but I think he will continue to work, leaving everything applied only to remove the hyphen generated automatically by the following word:

    Remove it without breaking style explicitly release the Break box and does nothing else.

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

  • Use Grep to find/replace

    I'm trying to find how to use GREP in find/replace of chage the formatting of a text which is a spreadsheet.

    I worked on the GREP query "~ b (\d\d) ~ b ', which is a paragraph return, followed by two digits, followed by another paragraph of return

    and then it is replaced by ' \t $1 ~ b ', which is a tab, found two numbers and a paratrooper returned.

    What I have to do is change the query to search for ANY number of digits, (which may be delimited by commas: e.g. 23, 36, 48, 50), then replace with a tab + found text.

    I guess what I'm looking for is a way for the query find "any text between two paragraph returns, no matter what that length", but I don't know how to do this. All of the generic options seem to find a single exampler (a figure, a character etc.)

    And you came so far

    Repetition operators are? (zero or one), * (zero or more) and + (one or more times). You can also specify the exact number: {at least up to the}.

    All of these operators are "greedy" by default - they match as much as possible. To to match as less as possible (which I'm sure you will come, sooner or later), add another? After the expression of repeat.

    If this is a number, then possibly another (which will be always included):

    \D\d?

    and what a figure, then zero or as much as 9999999,93856 million:

    \D\d*

    which is functionally identical

    \d+

    And it is between 3 and 8 figures but will be forced to use the shortest possible match:

    \d{3,8}?

    Having said that: a quick & dirty solution for your real problem is to find any amount of numbers, spaces, and comma:

    ~ b [\d,] + ~ b

    (there are more here because otherwise it would correspond also to an empty line). The [..] a list of the hooks - it will match to any unique inside code.

    A more complicated but 'cleaner' way is looking very precisely that for many, comma, space, number sequences - it is cleaner because it lines poorly trained (comma without a space) is fried!

    (She also has another code - operators in parentheses. Look at their place in a good reference GREP - lost people are enthusiastic about Peter Kahrel O'Reilly title, because there on the use of GREP in InDesign.)

    ~b\d+(, \d+)*~b)

  • How to find a space using grep?

    Hello

    I tried several ways to find a space (SPACEBAR) at the beginning of a paragraph using grep. I can get to find any white space at the beginning of a paragraph, but not only a space (SPACEBAR) specifically? Anyone know how to find?

    Thank you

    Gary

    ↑ followed by a space. There is no special code for a single regular space.

    If you want to see where you have entered one or more spaces, use this code to enter a space character:

    \x{20}

  • How to use GREP expression to group the last two words of a paragraph?

    Hi guys, I'm dealing with a document that is riddled with the orphan and want to use GREP to get rid of them all.

    I found this thread talking about how to group all the last 10 characters. But in my language, you can have up to 4 words together (almost a third of the sentence!) and still not break the limit of 10 characters. So if I use this expression, a sentence cut in half way, which make the whole paragraph looks horrible. I also tried the (\s\w+)? $ expression, but he left a few intact orphans (No. very random, model at all).

    So is there any other expression that can make the last 2 words of any paragraph together like glue stick?

    (\H+?\h ?) {2} $

    (^/)

  • When you try to attach a PDF file as an object the WORD 2013 64 bit I'm estates following error: "the program used to create this object is AcroExch. This program is either not installed on your computer, or it does not. To change this, install AcroE

    When you try to attach a PDF file as an object the WORD 2013 64 bit I'm estates following error: "the program used to create this object is AcroExch. This program is either not installed on your computer, or it does not. To change this, install AcroExch or ensure that all the dialog boxes in AcroExch are closed. "even disabled protection at startup mode. Who made no difference

    Hi sdesk.

    This problem occurs with the 64-bit application as Acrobat is a 32-bit application making it incompatible to insert objects into a MS Word 64-bit application.

    As a workaround solution insert the object as a 'Create New' rather than create a file.

    Let me know if it helps.

    Kind regards
    Nicos

  • using the function search is not finding the words I know are in my document. Why?

    using the function search is not finding the words I know are in my document. Why?

    The fact that you see a Word does not mean that it is 'real' text. You can select the word? If so, copy and paste in another application (such as Notepad). He always look the same? If the answer to each question is, you also cannot find it by using a search.

  • Hi, I thought that I ask here because I can't seem to find it online. I use Lightroom 5, and before my sliders temperature would be as follows:-100-100 yellow-100-100 blue green magenta for a reason, now the blue to the yellow scale is

    Hi, I thought that I ask here because I can't seem to find it online.
    I use Lightroom 5, and before my sliders temperature would be as follows:
    -100-100 blue yellow
    -100-100 Green magenta

    For some reason, now the blue to the yellow scale is from 2000 to 50000. Magenta to green is always the same.

    Can someone help me solve this problem? I literally have no idea what to do!

    Now you shooting RAW files.

    For JPG and TIFF, the two scales are-100 to 100.

    For RAW files, the Temp is 2000 to 50000 and the hue is-150 to + 150.

  • Find the URL using GREP

    Hi all

    Request:

    I need to find the end of the URL with ".com", ".org", ".uk", etc. using GREP.

    for example,.

    [email protected]

    [email protected]

    rajjjesz.sir555@gmail. Corp.fr

    ()[email protected]()


    Please help for this request as soon as POSSIBLE.


    -----------------------------------------------------------------------------------

    But, I found the solution for the content to Start with "http" or "www."

    Using the Grep Code Forum is: (? I)(http|www) \S+ [\l\u|\d]

    Concerning

    Siraj



    Hi Siraj,

    Check it out now.

    var doc = app.activeDocument;

    app.findGrepPreferences = app.changeGrepPreferences = null;

    app.findGrepPreferences.findWhat = "[a-z0-9!" #$% &'* + / = ? ^ _'{|}] +(?:\ \. [a-z0-9!#$%&'*+/=?^_`{|}] +) * @(?: [a-z0-9] (?: [a - z0 - 9-] * [a-z0-9])? \.) + [a-z0-9](?:[a-z0-9-]*[a-z0-9])? « ;

    var found = doc.findGrep ();

    for (var i = 0; i)<>

    {

    Alert ([i] found. Happy)

    }

    Kind regards

    Cognet

  • Find the content after the last tab use GREP

    Hi all

    Is it possible to find the content after the last tab use GREP?

    Please see the screenshot below:

    Screenshot, I highlight the required text.

    Screen Shot 2014-05-27 at 5.11.29 PM.png

    Thanks in advance

    Siraj

    Hi Sriaj,

    Try to find this in Grep.

    \t[^\t\r]+$

    Kind regards

    Cognet

  • Finding text using GREP in multiline

    Hi Experts

    Here is my screenshot of my text.

    grep.JPG

    I'm search for text between < grp > text multile < / grp >. I tried a few greps, but I failed. Can anyone suggest me the syntax of grep to find it.

    I use CS4 under XP.

    Thanks in advance

    Concerning

    Arul

    http://forums.Adobe.com/message/4091046

  • For microsoft office 3,1,5 avery Wizard software installation cannot find Microsoft Word

    Original title: the software installation wizard for microsoft office 3,1,5 avery will install on vista home basic. error comes up cannot find microsoft word. what I'm doing.

    as I mentioned above, I can not install avery Office Assistant 3,1,5 will not install with Vista Home Basic. error comes up cannot find microsoft word. What should I do?

     
    Hello
     
    What Microsoft Office version do you have installed?

    You can follow the methods mentioned in the article in order to help solve the problem.
     
    Avery Wizard Setup cannot locate word
    http://support.Microsoft.com/kb/288387
     
    Hope this helps
     
    Aziz Nadeem - Microsoft Support

    [If this post was helpful, please click the button "Vote as helpful" (green triangle). If it can help solve your problem, click on the button 'Propose as answer' or 'mark as answer '. [By proposing / marking a post as answer or useful you help others find the answer more quickly.]

Maybe you are looking for