I am looking for a regular expression that would select all paragraphs in a text box but the first one. This expression would be used for paragraph styling in Adobe InDesign.
Asked
Active
Viewed 220 times
-7
-
6Best of luck with that. Let us know if you have any specific questions after trying yourself. – imTachu Aug 07 '16 at 21:34
-
1Boy talk about trying to apply a sledgehammer to drive your screws! – MAP Aug 07 '16 at 22:21
-
Well I tried the following expression ~7[]\Z but to no avail. ~7 represents the soft return sumbol (first occurence at the end of the first paragraph), the square brackets represent "everything in-between" and \Z represents "end of story". – gmorissette Aug 07 '16 at 23:40
1 Answers
0
Try this one:
^(?<=\r)(.|\r|\n){1,999999999}

Michael
- 75
- 9
-
-
I wonder how your file is set up because it works at my end on every file I try. It finds all paragraphs starting from second down to the end of flow. – Michael Aug 25 '16 at 04:34
-
Are you using InDesign or another regex processor? InDesign regular expressions do not share the exact same syntax as "plain" regex. This webpage http://www.ericagamet.com/wp-content/uploads/2016/04/Erica-Gamets-GREP-Cheat-Sheet.pdf lists simple GREP expressions you could compare to "plain" regex. As for my file setup, I created a character style that italicizes text and assigned it to your expression (just as in following link) http://blogs.adobe.com/indesignpost/2010/11/quick-tip-automatic-formatting-using-grep-styles-in-adobe-indesign/ – gmorissette Aug 25 '16 at 23:04
-
What about a paragraph style that wouls specify the first paragraph aspect then call for next style defining the 2nd top n paragraphs look ? – Loic Aug 29 '16 at 10:14