Nested style Nested Grep for the last 2 words

Hi all

I'm under InDesign CS6 on Mac.

I am trying to create a style for a header so that two last words of position have a designated character style (i.e. position is written in light character and last two words of it are in bold). So that I can return the nested style, and by adding the command end nested Style here to each topic, I prefer something more automatic. The only similar to that post was dated 2008 and it was for CS3. Not to mention it was a script. Not a lot of help.

Thank you for your time.

Can't wait to hear a solution on your part.

Sincerely yours.

Sebastian

The last two words in a paragraph matches the grep expression:

(\S+)\s(\S+)$

\s whitespace

\S a space that is not

$ end of paragraph

in other words, a series of spaces that are not followed by a space followed by a string of nowheres at end of paragraph.

Peter

Tags: InDesign

Similar Questions

  • How can I add a style "BOLD" grep on the first occurrence of a Word?

    Hi all

    I need help on adding a style "BOLD" grep on the first occurrence of a Word.

    I can add the "BOLD" to the word, but it adds to all occurrences, see below:

    GREP style (Incorrect)

    Apply Style: "BOLD"

    Text: \ < Lorem Ipsum\ >

    Nam Lorem Ipsum semper pellentesque tincidunt. UT nisi sit amet arcu nulla tristique dictum. SED commodo total non mauris cursus pretium. Lorem Ipsum Aliquam erat volutpat. Morbi id pretium justo. Nam lorem quis facilisis molestie risus fermentum. Vestibule ut sem elit. Nunc eget neque Sed elementum augue EU outbound.

    I need only the "BOLD" to add to the first occurrence of the word, as below:

    Nam Lorem Ipsum semper pellentesque tincidunt. UT nisi sit amet arcu nulla tristique dictum. SED commodo total non mauris cursus pretium. Lorem Ipsum Aliquam erat volutpat. Morbi id pretium justo. Nam lorem quis facilisis molestie risus fermentum. Vestibule ut sem elit. Nunc eget neque Sed elementum augue EU outbound.


    Thanks in advance for the help!

    This should do it for you

    Apply style

    "BOLD"

    text (? i) ^(.+?) Lorem Ipsum

    apply the stye

    Book

    text: ^. * ? (? = Lorem Ipsum)

    The first expression search all the text from the beginning of the parapgrah through the Lorem Ipsum

    The other defines the rest of the text before the Lorem Ipsum to the base style (book, novel, or whatever your basic style)

  • Update iOS 10.1 was too early to be released? I was without a phone for the last 15 hours. It won't update, just keep errors

    I'm very angry. Why Apple will force us to use iTunes for the last update of iOS. iTunes *, it is the most unstable and convoluted software that I've ever known. 15 hours and counting process of updating my new iphone 6s + and I can't use it because it is 'restore' mode, I'm screwed. Arggghh!

    Apple requires you to use iTunes to do an update. It is only recommended if your phone is really complete and doesn't have any free room left.

    I upgraded 3 devices, and none of them had problems.

  • For the last week or three Firefox updated two or three times for each update and sometimes for no apparent reason...

    For the last week or three Firefox updates two or three times for each update. Sometimes it refreshes without obvious reason. For example, I'll be in the middle of typing in the message forum block & it refreshes. Or by filling out an online form. Or simply viewing a page.

    You can check for problems caused by an extension that is not working properly.

    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 (switch to the DEFAULT theme: Firefox/tools > Modules > appearance).

    • Do NOT click on the reset button on the startup window Mode without failure.
  • For the last 2 days everytime I open to MY MSN, it opens in safe mode. I deleted cookies and the history of FF. all other sites open OK. Vista, 64-bit operating system.

    Vista 64 bit OS

    Thanks for the replies, the problem was on the Microsoft site itself and internal glitch for the last 2 days on the garbled causing MY MSN page without graphics and text.

  • For the last few weeks, after that I closed 19.0 FF, I can't open it. I resorted to having to re - install FF each time so that it can open. What should do?

    For the last few weeks, whenever I close Firefox 18 (and more recently 19.0), I can't reopen the browser again. The application runs as if it is going to open, then stops and sits there. I had to resort to the re - install the browser every time now, very irritating. He remembers my tabs as they had been, that I want to. I used to open up to 40-50 tabs, but now made an effort to keep them below 20, thinking that it would help work more optimally. I'm tired of re - install the browser all the time. What should I do? Thank you

    When this happens, check the Windows Task Manager to see if there is a hidden window or the firefox.exe process is at a standstill?

    To open the Windows Task Manager, press Ctrl + Shift + Esc

    On the Applications tab, look for any window with the icon of Firefox. See something wrong here? In another thread, users have reported finding what seems to be a rogue process. If you find something, try to select and killing using end task.

    Under the processes tab, look for firefox.exe. According to the displayed columns, you can often see that the program is reading, writing, communicate or simply sitting there, doing nothing. If you have allowed time to stop Firefox and it crashes, you can select firefox.exe and click on end process.

    After that, Firefox expected to start normally.

    Please see this article for troubleshooting suggestions for when Firefox crashes out. https://support.Mozilla.org/en-us/KB/Firefox-hangs-or-not-responding#w_firefox-hangs-when-you-quit-it

    A little luck?

  • This system is available for the last update

    This system is available for the update for the last update: Mac OS X 10.6 Snow Leopard?

    Depends on what model of Mac you have. Choose about this Mac from the Apple menu, click details and compare the identifier of the model with the following, which are the first Macs of each type that can execute the Cougar and newer:

    iMac7, 1

    MacBook5, 1

    MacBookPro3, 1

    MacBookAir2, 1

    Macmini3, 1

    MacPro3, 1

    Xserve3, 1

    A Mac older than those listed including the Core 2 Duo (not Core Duo) or better CPU and at least 2 GB of RAM can run 10.7 Lion, which is available by clicking here. No more recent than 10.6.8 operating system supports the PowerPC software such as Microsoft Office 2004.

    (138837)

  • EWTN is available for the last Apple TV?

    EWTN is available for the last Apple TV?

    N °

  • Why for the last 3 days am I get the update of windows to shut down & boot-up/it takes a lot of time to complete their/TI is aqnnoying!

    I have windows7 home premium - when I stopped, I get updates - then I get them back to the start-up/it happens each time for the last 2 or 3 days-i use my computer toshiba laptop throughout the day and don't ever started day avant-ce that goes? There are unusually long for downloads to update?

    See this discussion: http://answers.microsoft.com/thread/cac55bf2-e271-e011-8dfc-68b599b31bf5 (which now includes a countless number of threads merged to confuse you more).

  • -Error code 646 - repeated the failures (now for the last two months) to install updates Windows 7 S/W, possibly after installation of Office 2010?

    For the last two months - easrly November, when stopped down, I saw 10 message updates are being installed. This follow-up installation of Office 2010 (download from Web site), who bought Office 2007 earlier this year, and by choosing to take the free update promised for 2010.

    On the control, I find that whenever all ten updates failed to install (error code 646)

    Concered updates are KB2202188; KB982726; KB2289161; KB2289078; KB2413186;  for Office 2010

    and KB2345000 - Word 20120.

    KB2409055 - 2010 Editor;

    KB2289116 - Social connector;

    KB2431831 - knitting 9;

    KB2433299 A Note;

    Any thoughts there?

    Steve L

    A KB was created for 646 error code that appears during the installation of the updates of Microsoft Office. The KB includes an automatedMicrosoft fix 50461 that corrects the problem. Look at the following KB:http://support.microsoft.com/kb/2258121http://snipurl.com/164ypp>

    Suggest you download and save the fix it.

    Then close all open programs and browsers before running MSFix it 50461.msi.

  • I could not install the update KB2686509 for Widows XP Pro, for the last 6 months. WHY?

    I could not install the update KB2686509 for Widows XP Pro, for the last 6 months. WHY?

    Maybe check the related threads and see why others also had problems with this update:

    http://answers.Microsoft.com/en-us/search/search?searchterm=KB2686509&CurrentScope.ForumName=&CurrentScope.filter=&askingquestion=false

    especially this thread: http://answers.microsoft.com/en-us/windows/forum/windows_xp-windows_update/kb2686509-repeatedly-fails-with-error-code/0deeacb6-115c-419d-ac37-03ff8927b79c

    That should answer your question about why you have a problem installing the update.

  • For the last month or more, I had the same two updates for my computer

    original title: Windows updates

    For the last month or more, I had the same two updates on my computer.  Is anyone know why and what I can do to fix this?  I am running Windows XP.  Thank you very much.

    Hello

    the message "you have hidden the important updates" is normal, because you have hidden the high priority updates, but the updates are already installed, if that's OK.

    Try to look again at the web page:

    http://www.update.Microsoft.com/

    and click on "Custom".

    You should not see the updates (KB2518864 and KB2539631) in "review and install updates.

    You should see only "Important - you have hidden the important updates..." and "high-priority - updates non-priority updates to update for your computer... ».

    Then, try this (remove the content of the "'C:\Windows\SoftwareDistribution" ")

    1. Click Start, click run, type services.mscand click OK.
    2. In the Services (Local) pane, click automatic updates, and then click stop.
    3. Reduce the Services (local) window.
    4. Select all the contents of the Windows distribution folder, and then delete them.

      Note By default, the Windows distribution folder is located in the drive: \Windows\SoftwareDistribution folder. This place is a placeholder for the drive where Windows is installed.

    5. Ensure that Windows distribution folder is emptyand enlarge the Services (local) window.
    6. In the Services (Local) pane, click automatic updates, and then click Start.
    7. Restart the computer.

    I hope that we will achieve the goal, it will no longer still report the updates :-)

    LC

  • For the last two weeks, I was unable to open all the emails that are in my Windows Live Hotmail folders.

    FOR THE LAST TWO WEEKS IVE HAS BEEN IMPOSSIBLE TO OPEN ANY EMAIL WHICH IS LOCATED IN ANY OF MY HOTMAIL FOLDERS. ALSO, I CAN NOT OPEN HOTMAIL WHICH IS IN THE AREA SENT, WHENEVER I TRY THE SERVER BRINGS BACK ME TO THE HOTMAIL INBOX.
    original title: I CANT ACCESS ANYTHING THAT HASBEN PLACE IN MY RECORDS or IN THE SENT BOX IT JUST FLIPS BACK to MY RECEIVING HOTMAIL Inbox

    Hello

    Given that the problem is related to hotmail, I suggest you to post the question in the forums and check them off below if it helps:
    http://windowslivehelp.com/solutions.aspx?ProductID=1

    It will be useful.

  • 16 June updated blown all my documents for the last 10 days. Any solution?

    Documents for the last 10 days, all my email settings, all memory of recent activity disappeared.

    Hello Craig,.

    Let's see if the files are actually missing or if they are hidden:

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-files/Unhide-files-and-folders/ca46d3ba-1b51-E011-8dfc-68b599b31bf5

    Best regards

    Matthew_Ha

  • FONT SIZE: for the last 8 days the font size will increase from 100% to 75%.

    For the last 8 days the font size will increase from 100% to 75%. This happens automatically. I am not able to change the font size to 100% the normal way. On the desktop, I right click and try to enlarge the icons without result. In Explorer I go down to the bottom right to change the zoom level and try to change the font, nothing helps. The only way I can do it is through the system restore. Can anyone help? Dogscout

    t-4-2

    Changed the dpi that did not work. Police accounted for 70% this morning. I had to use the system again restore.

    Suggestions...
    1 make a check of the file system.
    Start button > Search box type cmd > look up, do a RIGHT click oncmd.exe > click onRun As Administrator > in this window cmd black and white, type at the prompt flashing sfc/scannow > press the ENTER key.
    Note : there is a space between 'sfc' and ' / '.
    To sit and wait. It will take time.
    When finished, exit the cmd window.
    Reboot (restart your computer)

    2. If the above does not solve the problem. Do a check disk.
    Start button > Search box, type cmd > look up, right-click on cmd.exe > Run As Administrator > in the black and white window, at the command prompt flashes, type chkdsk/f/r > press the Enter key.
    Note : there is a space between 'chkdsk' and ' / '.
    The screen will say something like cannot do it now, but you want to run it on reboot. Click on 'y' as in Yes > press > window cmd of output.
    Restart your computer. Check disk starts after reboot. It will take a while. DO NOT stop the machine. Just wait.

    t-4-2
     
     

Maybe you are looking for

  • I need driver audio WinXP for Pavillion DV6599ee

    Hello. I installed WinXP on my Pavillion DV6599ee but I can not correct audio driver for this laptop. Can someone please give me a link to the correct audio driver for WinXP for Pavillion DV6599ee? Thank you.

  • Photo of Webcam Satellite C660 - 24G: is not clear

    Hi all I have 3 laptops (c660 - 24G) and webcams are like this picture http://www.m5zn.com/uploads2/2011/10/18/photo/1018110010587xijtpg1i.jpg I installed the new drivers and tried win7 (both 32 & 64-bit) and I tried the portable three and the same p

  • Windows 7 went on V570

    Some time ago, my son messed up the Windows 7 operating system on his Lenovo V570. Since there was no recovery disk, including in the new box, I installed an older Vista operating system, so he could continue with his homework. But now, he bought a n

  • Can we stop the cheaters to backgammon?

    It is quite obvious cheats are available and used on Backgammon Microsoft.  Use any search engine and you will find them.  Play the game enough that I have, and you can observe the cheating in real time.  When a player leaves the game mi, which is of

  • Error message DCR in the works of Cisco

    error message:communication error with server DCR. Went to a reboot of the server, but still getttin message. DCR journal is attached.