GREP question: How do \r and \z play at the same time?

InDesign CS5

I have a couple of styles GREP designed to allow development of large portions of the text much easier. In order to reduce the time back on and force things back, I created an unbreakable character style to be applied to the words at the end of a paragraph and after punctuation. To get rid of the massive gaps at the end of the lines, I have limited the number of characters in words and whenenver, some still get through, I apply a character style "Delete everything" separate. This makes it easier for our web service during the file conversion, the lack of forced returns and the addition of seamless formatting instead.

So far, I have 3 GREP queries to apply:

-\s\ < \w{1,7}\ > < \w{1,8}\ > [.!,:;] »] \r

-\s\ < \w{1,7}\ > < \w{1,8}\ > [.!,:;] »] \z

(? < =[.!?;:,"]\s)\ < \w{1,7}\ > \s\ < \w{1,7}\ >)

The reason for the 3 is the end of the paragraph (\r) query does not apply at the end of a story (\z). I tried to combine the two using ' | ' between queries but it just ends up by doesn't work do not at all. Or with the ends as follows: (\r|\z)

Is it possible to get this consolidated to a better query, so I need to copy and paste the three whenever I want to apply it to a style? It would be easier when you give the query to people, too, if she were consolidated. All the 3 together would be ideal.

Thanks to anyone who can lend a hand.

Use $ instead of \r or \Z

Tags: InDesign

Similar Questions

  • Question: How can I format 10 systems at the same time through the connection to the LAN?

    install

    HI.i want to format 10 pc in lan .How can I .thank

    If you are the administrator of a such LAN, then you already know - if you are not the administrator, then you have no right to do.

  • How many computers which can install you programs CC on and how many computers can use programs at the same time? [was: Question for you!]

    When you buy an individual monthly plan for CC at $50 per month, how many computers which can install you programs CC on and how many computers can use programs at the same time?

    Thank you for your answer!

    You can install the software on two computers. These two computers can be Windows, Mac OS, or everyone. If you install on a third computer, you will be asked to turn off this feature on the other two computers. You can then re-enable one of the two previous computers and use Cloud Creative apps on it. You can use apps on a single computer at a time.

    Kind regards

    Hervé Khare

  • can I play the guitar and midi keyboards at the same time?

    IM using the 3 main stage, I would like to play guitar and midi keyboards at the same time. I know that I can have more than one keyboard will at the same time, but I can't understand how to play the guitar too. I use a core Alesis 1 plug the guitar and a Keith McMillen 12 Step midi controller, he reads both just fine alone, but they play together. How can I get there? In addition, Im using a MacBook Pro OS X El Capitan.

    Thank you

    Mike

    You add a bunch of audio channels and affect the Core 1 Alesis entry?

  • In windows movie maker, failed to get the narration and music to play at the same time

    Hello
    I have followed the instructions to the T, but cannot get the narration and music to play at the same time.

    Hi Anataia,

    You are unable to play the music and narration at the same time, you can adjust the audio levels to determine which audio will play louder than the other in your movie.

    The audio settings by default in Windows Movie Maker is for the audio portion of imported video and any narration or music that you add to play at an equal level, but you can change that setting if it does not give you the balance that you want. To adjust the audio levels, follow these steps:

    1. Click on Tools, then the Audio levels.
    2. Do one of the following:
      • To increase the level of audio on the Audio track that is part of a video clip, drag the slider toward Audio from video.
      • To increase the level of audio that is located on the audio / music, drag the slider to Audio / Music.
    3. Click close.

    http://Windows.Microsoft.com/en-us/Windows-Vista/adjusting-audio-in-Windows-Movie-Maker-frequently-asked-questions

    http://Windows.Microsoft.com/en-us/Windows-Vista/add-narration-to-your-movie

    Hope this has been helpful.

    Bindu S - Microsoft Support
    Visit our Microsoft answers feedback Forum and let us know what you think

  • How to transform a layer object and a path at the same time?

    Hi all

    I know that I will start when you tell me the answer to this!

    I would really like to know if there is a way I can manage to transform a layer object and a path at the same time... or if there is no work around to get there.

    In a Word, for example I spend a VERY long time to create a drive complex around a very detailed object and then at the end note to what twisted and perspective, and would like to straighten.

    Of course I could turn and correct the object and then carefully turn the path - but it will not correct and I have to spend a lot of time the path of adjustment and make SURE, it is perfect.

    Are there not somehow, I was able to transform set?

    Usually, of course, I do all the correction to straighten and correct the perspective in advance, but in some cases after I am done creating the path I then notice that image could have used other adjustments.

    I appreciate all the advice you can get :)

    Thank you kindly,

    Christine

    Transform the layer and then target the way and make "Edit > Transform path > Again. If you make several changes on the layer, and then each time that validate you and leave transformation mode, remember to do the ' transform path > Again "to keep the layer and the synchronized pathname.

  • Get 2 SWFs to play at the same time?

    I have two sovereigns on the same web page and I am trying to get them to play at the same time only by clicking on one of them. How to make this happen?

    You can try to use the LocalConnection class:

    http://help.Adobe.com/en_US/FlashPlatform/reference/ActionScript/3/Flash/NET/LocalConnecti on.html

  • The SD card is accessible by a BB App and Windows Explorer at the same time?

    Hello

    My requirement is that the SD card must be consulted by a BB App and Windows Explorer at the same time. But the BB app I developed is able to access the SD card only when the mass storage mode is turned off. Is this how the BB has designed or is it possible to have some logical coding for this?

    Thank you

    No, this is not possible.

  • HOW MANY DEVICE CAN BE USED AT THE SAME TIME?

    Hi all

    I would choose the plan of the student to study in September, I would like to understand how much peripheral can be used at the same time? Because I have an IMac at home and also MacBook Pro retina for use at school? Can I download and use it on this two computer at the same time?

    waiting for response and thanks a lot!

    Cloud license allows 2 activations to time http://www.adobe.com/legal/licenses-terms.html

    -pdf of 200 http://www.adobe.com/content/dam/Adobe/en/legal/servicetou/Software_Terms-en_US-20150601_2.

    -Install on a 2nd computer http://forums.adobe.com/thread/1452292?tstart=0

    -https://helpx.adobe.com/creative-cloud/help/sign-in-out-activate-apps.html

    -Windows or Mac has no importance... 2 on the same operating system or 1 on each

    -Two activations on one account CAN NOT be used at the same time (to be noted in the link above of the license)

    -An individual account is for one person and may not be shared with anyone else

  • the two versions of Muse (2015.0 and 2015.1) at the same time

    Hello dear Musers,

    Is it possible to install both versions (2015.0 AND 2015.1) at the same time?

    I manage several sites and I want to be able to update regularly (stable and bug release 2015.0) while slowly, tests and moving them to reagent (2015.1)? Also to start playing with the possibilities of delicate design in Muse.

    I also have a site with complex effects of scrolling that should stay that way. I can't run the risk of not working after the update... at least I have a replacement with Animations of EDGE...

    Thanks for the help.

    J. Vallejo

    If you an active member of Muse and can accept the terms of the non-disclosure agreement, my recommendation would be to join the beta program of Muse at http://museprerelease.com. At the moment the latest preliminary 2015.1 is always displayed and it is basically identical to the retail version, but with a splash screen different. In general, it is deleted shortly after the production version is released, but has not yet happened.

    The preliminary version installs the construction of shipping along the coast. The two have no overlap, other than the fact by double clicking a .muse file is a bit of a gamble in terms of what version of Muse, the operating system decides to launch.

  • Should I iMatch and music Apple at the same time?

    Is there a point I iMatch and music Apple at the same time?

    These are two different services > iCloud library: understand the differences between music from Apple and iTunes game - Apple Support

  • How to show 2 web pages at the same time

    How to split screen 2 sites at the same time to allow to work in both directions easily?

    You can watch one of the following extensions:

  • Why I have Photo and Photos open at the same time?

    Why I have Photo and Photos open at the same time?

    When what's going on?  When you connect a camera or a card reader?

    Or after the Mac is restarted?

    If this occurs after startup, check system preferences > users and groups.

    Select your account and open the connection. Deselect the applications you want to open at startup.

    If this happens when you connect a camera, open the iPhoto preferences > general.

    Set the preference "Connecting camera opens" to "no application".

  • How can I disable all tabs at the same time?

    How can I disable all tabs at the same time with the IMac?

    Ask yourself how to close Firefox with multiple tabs / windows open?

    Firefox menu > exit.

    Or, you try to do something else?

  • I wish to see the two VIDEOS next to them playing at the same time, one on the left, the other on the right without the video image is compressed.

    I wish to see the two VIDEOS next to them playing at the same time, one on the left, the other on the right without the video image is compressed. I also need to use the effect to shoot a video of 270 degrees. Please don't tell me to download rehanfx it does not work with this effect. Then someone could provide me a way to what's going on? Since this split-screen is also popular then why isn't just a default thing on movie maker?

    You will need to get a software that is able to do this.

Maybe you are looking for