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} $

Tags: InDesign

Similar Questions

  • 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

  • Camera: Find the last image?

    Hello

    Are there examples of how to find the last image taken after invoking the camera?

    Thank you

    Hi and welcome to the forums!

    If you take the picture and save, and can't find it? Or you take pictures

    Return to the back and you want to know where they are stored as you pull?

    Go to the media and click the photos, as soon as the images are displayed

    Highlight it, click menu, properties. It will show you, device, media and file

    and size.

    You can set the previous directory. Unit > menu button > options.

    Here you can set options for the camera with flash, color, size, and storage in the

    media folders,

    Thank you

    Bifocals

  • How to find the last date of execution of the objects in database

    Hi all

    We're going for an upgrade of the database 11g and for the same thing, we want to know the last date of the following-

    Packages, Tables, views
    Conc. programs / value Sets / look up / profile options

    Is there a way we can find the same thing.
    The answers would be really useful.

    Kind regards
    Shruti

    So can you provide clues on how to find the last opportunity registration

    I don't think you can find such a script with having activated audit.

    Thank you
    Hussein

  • How to find the last pasted paragraphs FMP?

    I'm sticking FMP several objects at once in a file (a file of changes to the sections containing the changebars) in the main text flow. I want a separator line to go at the end of each pasted section, so I try to insert one after the paste operation. But instead of a line between each section, all lines are added at the end of the file, after all the sections. So if there are 3 glued sections at the end of the file are three lines. My code is below, do you know how I could fix this?

    Thank you, Mark

    function copyPasteChanges (doc, chgRange) {}

    Select the section with changebar and copy it.

    doc. TextSelection = chgRange;

    doc. Copy();

    Prepare for the changes doc and paste there the modified section.

    var firstChgPgf = changesDoc.MainFlowInDoc.FirstTextFrameInFlow.LastPgf;

    var changesTloc = new TextLoc (firstChgPgf, Constants.FV_OBJ_END_OFFSET);

    var changesTRange = new TextRange (changesTloc, changesTloc);

    changesDoc.TextSelection = changesTRange;

    changesDoc.Paste ();

    To go at the end of the file again (I think)

    var lastPgf = changesDoc.MainFlowInDoc.FirstTextFrameInFlow.LastPgf;

    var dividerPgf = changesDoc.NewSeriesPgf (lastPgf);

    var TLoc = new TextLoc (dividerPgf, 0);

    changesDoc.AddText (TLoc, '_');

    }

    Hi Mark,

    The problem is that the dough does not occur when you think. The dividing line is added at the end of the file, but are not your actions of dough. Actually, I think that maybe a little random where pasta is produced, because this line:

    var changesTloc = new TextLoc (firstChgPgf, Constants.FV_OBJ_END_OFFSET);

    .. .is does not create a valid text location. You can check this by abandoning the service after:

    changesDoc.TextSelection = changesTRange;

    .. and look at where's the insertion point. It will probably be everywhere where you left it last, because the call is not valid. I can't tell you exactly why, except that it has something to do with the fact that you are using the last paragraph in the stream. There is something weird to try to define a range of full-paragraph text with the last paragraph. I'm sure it's related to how the last TFP in a stream does not show a mark of FMP, but beyond that, I don't know how to do what you're trying to do with the last paragraph.

    Having no knowledge of how do it right, any time I need to do this, I create a paragraph "dummy" at the end of the flow to fill that space strange 'last FMP", then do the work around it. In the end, I just want to remove fake TFP. I don't know if it's a good idea or not, but it's the only way I ever get it to work and it sorts the mirror how you could do this manually in the GUI.

    With this, I modified your script as follows, and it seems to work better. Note that I also modified the logic of how to find the last paragraph of the flow by writing a separate function. Your call to the 'FirstTextFrameInFlow' is OK, unless your doc begins to span several pages and/or begins with several empty pages. The function I wrote ensures that you really the last TFP in the stream.

    I hope this helps.

    Russ

    function copyPasteChanges (doc, chgRange) {}

    Select the section with changebar and copy it.

    doc. TextSelection = chgRange;

    doc. Copy();

    Prepare for the changes doc and paste there the modified section.

    var lastPgf = getLastPgf (changesDoc);

    var dummyPgf = changesDoc.NewSeriesPgf (lastPgf);

    var changesTloc = new TextLoc (dummyPgf, 0);

    var changesTRange = new TextRange (changesTloc, changesTloc);

    changesDoc.TextSelection = changesTRange;

    changesDoc.Paste ();

    To go at the end of the file again (I think)

    Don't forget that last TFP is now fake TFP

    lastPgf = getLastPgf (changesDoc);

    var dividerPgf = changesDoc.NewSeriesPgf (lastPgf.PrevPgfInFlow);

    var TLoc = new TextLoc (dividerPgf, 0);

    changesDoc.AddText (TLoc, '_');

    dummyPgf.Delete ();

    }

    function getLastPgf (doc)

    {

    textFrame var is doc. MainFlowInDoc.LastTextFrameInFlow;

    var lastPgf = textFrame.LastPgf;

    While (! lastPgf.ObjectValid () & textFrame.ObjectValid ())

    {

    textFrame = textFrame.PrevTextFrameInFlow;

    lastPgf = textFrame.LastPgf;

    }

    Return lastPgf;

    }

  • How can I find the music marked with an exclamation point in my itunes library?

    How can I find the music marked with an exclamation point in my itunes library?

    Hello there rdgernnr!

    I certainly don't want to find the songs that show the "!" and get them to play correctly. If you have not yet done it, read this article: If you see an exclamation point next to your items in iTunes - Apple Support

    More precisely:

    Correct the path of the media file

    Follow these steps to help find the correct location of the file iTunes media:

    1. In iTunes on your Mac or PC, select the song, album, movie, or television show that has the exclamation next to him.
    2. In the MenuBar at the top of your screen, computer or at the top of the iTunes window choose Edition > read the information.
      If you are using Windows and you don't see the menu bar, Learn how to turn it on.
    3. When you see a message asking if you want to locate the file, click search.
      • If you know the location of the file, point to it iTunes and try to read your content.
      • If you do not know the location of the file, search for it:
        Mac: Press ⌘ and space control your keyboard, and then type the name of the movie title, app, song, album or artist.
        Windows: Press the Windows on your keyboard, and then type the name of the movie title, app, song, album or artist. If your keyboard does not have a Windows key, press the Escape (Esc) and control (Ctrl) on your keyboard.
      • If the file is on a network drive or external, plug on the volume of disk or external network.
      • If you find your objects in the trash or recycle bin, restore them to their previous location:
        Mac: Control-click or right-click on the item and choose put back.
        Windows: Right-click on the item and choose restore.
    4. Once you retrieve the file, use Get new Info to locate the file, and then point iTunes to the correct location.

    See you soon!

  • My iPhone is dead and the lack of how find the last location?

    How to find the last location of the iphone

    Apple has sent sms on my phone number. We found your lost iphone please refer to the specific location. Apple. messageios.com apple support. What shoud I do

  • My 2 TB TC is full and will not back up. Yet, I have only 1 TB of data on my laptop. Note that I've reformatted the laptop since the last backup with a clean installation of El Capitan.

    My 2 TB Time Capsule is full and will not save. Yet, I have only 1 TB of data on my laptop. Note that I've reformatted the laptop since the last backup with a clean installation of El Capitan.

    I bought a 2 TB external hard and have used Time Machine to back up. But I also use my time Capsule, which I save wireless.

    Any suggestions on getting my TC back up?

    One suggestion would be to copy all existing backups that are now on the Time Capsule 2 TB hard disk. Then, clear the TC and start over again with new backups.

    A more expensive option... assuming you want to keep all old backups on the TC... would be to add a new TC and start backups goes in this direction.

    Another option... If you do not need to keep all old backups now on the TC... would be to erase the TC and start over again with new backups. The benefit of doing this would be that no new material will be necessary, but the downside would be that you lose your old backup history.

  • How do you find the last time that an address older Windows Live Hotmail has been used if you don't remember the password?

    How do you find the last time an old hotmail address was used... especially if you can't remember the exact password?

    original title: old hotmail address

    How do you find the last time an old hotmail address was used... especially if you can't remember the exact password?

    Good enough if you can't on the account and you can't prove it is yours in order to regain access (via password self-service reset, etc)-then you won't know anything about the account.

  • Windows mail the filler of unique active automatic name for a day or two after the last contact with the person.

    Windows mail. Filling of unique active automatic name for a day or two after the last contact with the person. After that, I have to manual search in contacts. Is this normal?

    Thanks in advance

    Hi Abbeypiece Ltd,

    The feature of AutoComplete in Windows Mail doesn't seem to use the Contacts folder. Instead, he uses the history of most recently used contacts.

    For more information, you can consult the following article:

    Change Windows Mail send settings

    Hope this information is useful.

  • [JS] To find the last updated the story?

    Hello.

    I can find the last story added.  (app.activeDocument.stories.lastItem ())

    But I want to find the last updated the story.

    Is there a way?

    Hello..

    Updated the story means that it is many possibilities... for example, if you add a cahracter, deletion of a character, track changes, change of font etc...

    so every change attribute will give the last updated the story...

    I hope that you should check the possibilities!

  • Lightroom works only with reduced funktionality. Develop module is not available.  Adobe can not find the license associated with my Adobe why identification code? Every month I pay an amount for PS and LR...

    After the upgrade to Windows 10 Lightroom works only with reduced funktionality. Develop module is not available.  Adobe can not find the license associated with my Adobe why identification code? I bought the license more than 1 year ago. Every month I pay an amount for PS and LR, and for the past 4 months I can't work. Russian support team cannot solve this problem and sent me here.

    Thank you! I reset my password, the problem was in it.

  • How can I find the last selection OR has highlighted it selection?

    When I select some elements in indesign I have the option of 'command + click' to highlight one selections. How can I find this item highlighted in the script?

    OR

    How I'll get the last item selected in indesign.


    I'm writing a script that relies on certain properties of the element highlight or the last selected item.


    Thank you


    Screen Shot 2014-08-01 at 12.17.03 PM.png

    Thank you myDavey. It's not exactly what I was looking for, but he had good information on something else, I'm trying.

    I found the solution to my problem. This highlighted selection apparently called the object 'key '.

    And it can be used in the script as app.selectionKeyObject. This solves what I was looking for.

    And you can find the last selection by selecting the last item in the selection table.

  • marking of documents created in the last week with the word 'NEW '.

    Hi all.

    I have a mysql database with a table 'articles' containing the following (and other) fields:

    • category_name
    • Date_Created
    • level_name
    • title
    • Summary

    I have set up a query to extract information on the statutes of the db. The questioning of basic works very well. It looks like this:

    $r = @mysqli_query ($dbc, $q);

    / * display the results * /.

    If ($r) {}

    while ($row = mysqli_fetch_array ($r, MYSQLI_ASSOC)) {}

    echo "< div class ="derniers_articles"> < strong class >: < facilities >". "." $row ["category_name"]. ' < br / > < strong > < em > posted on: < facilities > '. $row ["date_created"]. ' < br / > < level >: < facilities > '. $row ["level_name"]. "< /em > < h3 > '. $row ["title"]. "< / h3 > < class p ="last_ten"> < em >. $row ["Summary"]. ' < /em > < /p > < / div > ';

    }

    mysqli_free_result ($r);

    } else {}

    echo "< p > Prob get the info you need." < /p > ';

    }

    The query gives me result like this:

    Category: News
    Posted the: 2011-02-10 22:58:05
    Level: 5, 6

    Are you interested in politics?

    There are too many young people who don't is interested not in politics. It's a secret United Nations pay no one. However, this isn't the case of Darcy Lonergan who, at 21 years old, the youngest is launching itself candidates who pour win a seat in the next Parliament.

    Now, I want to mark all records created in the last week with the word 'NEW' so I inserted the line in bold in the following code:

    $r = @mysqli_query ($dbc, $q);

    / * display the results * /.

    If ($r) {}

    While ($row = mysqli_fetch_array ($r, MYSQLI_ASSOC)) {}

    echo "< div class ="derniers_articles"> < strong class >: < facilities >". "." $row ["category_name"];

    If (DATE_SUB (CURDATE (), 7 DAYS INTERVAL < = DATE($row['date_created']))) echo "< strong > NEW < facilities > ';"

    echo "< br / > < strong > < em > posted on: < facilities > '." $row ["date_created"]. ' < br / > < level >: < facilities > '. $row ["level_name"]. "< /em > < h3 > '. $row ["title"]. "< / h3 > < class p ="last_ten"> < em >. $row ["Summary"]. ' < /em > < /p > < / div > ';

    }

    mysqli_free_result ($r);

    } else {}

    echo "< p > Prob get the info you need." < /p > ';

    }

    .. but he throws this error:

    Parse error: syntax error, unexpected T_LNUMBER in [file path] on line 31

    31 is the "BOLD" line, I inserted. Can someone tell me what I am doing wrong? ("The date_created field is a timestamp like this ' 2011-01-08 18:06:39 '.)

    I'm new to php so be nice!...

    Thanks in advance.

    Hugh

    I think I'd be inclined to do in the query.

    By example SELECT field1, Field2, field3, etc, IF (DATEDIFF (NOW (), dtCreated)< 7,="" 'new',="" '')="" as="" recordstatus="" from="">

    Then echo just the value of the recordStatus for each record.

  • stop on the last slide with active buttons

    Hello world

    Am still a beginner with Captivate... Please help:

    I have 4 buttons set in place on the last slide of Film1, functioning as a simple menu, sort of.

    First button goes to Movie 2, second button jumps to 5 film, third button jumps to 8 film, with a last button SHOWS ALL from 2 film as well. All these movies are related to each other (ie. 3 movie begins when ends the movie 2).

    How can I get the Film1 stop on the last slide, with all 4 buttons remaining active?

    In my published exe, the buttons work if and only if I click on them, until the project stops.

    Thank you in advance for expenses!

    Hello

    Please make sure that the buttons have activated pause. (It is possible to disable)

    Assuming that they have activated pause, they should pause and wait for the user to click on them before you continue. If a break has been disabled, probably made in the box Inactive playhead of the button and it no longer works.

    See you soon... Rick

    Useful and practical links

    Captivate wish form/Bug report form

    Certified Adobe Captivate training

    SorcerStone blog

    Captivate eBooks

Maybe you are looking for

  • generation of sinusoidal wave with smu

    Is it possible to generate, for example, one 3 a 50 Hz sine wave with SMU 4138 or 4139? THX

  • How to terminate TestStand Application after a mistake of LabView.

    We just started launch TestStand from a command line, and when he (TS) stops execution of sequence error of LabView, the command window does not know its status. So, I have a two part question: (1) is there a way to STOP COMPLETELY the TestStand appl

  • camera connection problem

    If am connect a camera more that 255 times after that the camera is not recognized by software uses professtional XP SP3 seeking help What a fact is, when am feeling camer is not formatting the Pc recognazing and reinstaling the OS and software

  • Vista Defrag__

    Defraging Vista runs for days. I don't like. I never know if it never ends completely or if it continues for sure until what it ends up. Can you please recommend an alternative? I'd want one that shows progress and finish for 1 day. My HD is 750 GB.

  • Word perfects asked to re - register every time you start

    Whenever I start I asks me to save my Word Perfect Office 12.  I registered and it appears in my Corel account.  How can I avoid that this message to drive me nuts?