New answers tagged grep
0
votes
How do I use PositiveLookbehind to match multiple strings in GREP styles?
It doesn't work because a lookbehind assertion has to be fixed width. Use this instead:
\b(?<=[become]\s)(happy|sad|angry)
\b for word boundary.
\s for space, instead of . (which matches any ...
0
votes
InDesign: Using GREP to style URLs, email addresses, phone numbers, social handles, and hashtags
I just use
<(http|www)\S+
That seems to work for me.
0
votes
InDesign GREP code for find words between a full stop (.) and a colon (:)
If the period . might also be preceded by a word, as per your example, "somthing. Tone:" you might try this:
(?<=[a-z.]\s)[\w\s]+:
"Tone:" will be selected if your string looks ...
Top 50 recent answers are included
Related Tags
grep × 99adobe-indesign × 93
indesign-scripting × 18
paragraph-styles × 16
character-styles × 14
automation × 5
regex × 5
batch-processing × 4
text × 3
javascript × 3
formatting × 3
footnotes × 3
adobe-illustrator × 2
typesetting × 2
creative-cloud × 2
book × 2
script × 2
publishing × 2
paragraph × 2
color × 1
fonts × 1
font-design × 1
html × 1
style × 1
data-merge × 1