InDesign's built-in 'grep' function.
Questions tagged [grep-indesign]
45 questions
0
votes
1 answer
How do I grep for all lines without a "@" character in the line
I have a text file open in BBEdit/InDesign with email addresses on some lines (about a third of the lines) and name and date stuff on the other lines. I just want to keep the lines that have emails and remove all the others.
A simple pattern I can…

wide_eyed_pupil
- 3,153
- 7
- 24
- 35
0
votes
1 answer
Select multiple words and characters using GREP
I need some GREP help. I'm trying to search for text in an InDesign file that has lesser-than "<" and greater-than ">" characters on either end. The text could be one word or more and could include spaces and even numbers. But, here's here's the…

Jim Maivald
- 522
- 6
- 26
0
votes
2 answers
GREP last {4} word end letters
In InDesign I was hoping [\l]{4}(?=\s) will find the last four letters of words, but the GREP did not work. I wanted to put it in the header of page as the suffix. Was doing magic with \b and $, nothing worked. And http://regex101.com/r/uQ7xR3/1…

gasyoun
- 23
- 5
0
votes
1 answer
Character restriction at grep in Adobe Indesign CC 2014 on Windows
When I use the grep functionality in Indesign CC 2014 on Windows it doesn't return the same amount of results.
It only happens on Windows in the latest version of Indesign.
For example:
when i use the grep [^<]+ on windows it wil find…

Glen Bal
- 1
- 1
0
votes
1 answer
InDesign GREP: Italicized specific characters
I want to use a GREP style to italicize a portion of a company name. For example: "In*Design*." Design is only italicized when it follows the word "In" but "Design" never appears italicized when it stands by itself.

user3795140
- 11
- 1
0
votes
1 answer
InDesign Grep: Changing sentence beginnings to Uppercase
I am relatively new to scripting and within an InDesign Script I am trying to change all the first letters of all sentences to uppercase (many of the are lowercase, since I randomly generated the setences from different text sources).
I am so far…

mdomino
- 1,195
- 1
- 8
- 22
0
votes
0 answers
Adobe Indesign JavaScript: using app.findGrep() and app.changeGrep() consecutively
I have a script that should find and replace predefined terms and mark the changes visually on a separate layer.
The process basically works in two steps:
Loop through a list of expressions, look for every expression with app.findGrep() and insert…

Samuel Blattner
- 303
- 4
- 10
0
votes
3 answers
how to fix this GREP statement
I'm trying to select just the x
舌ぽう (舌鋒x) ぜっぽう (sharp) tongue
じょう舌 (饒x舌) じょうぜつ garrulity, loquacity
Its always in parentheses. So I want to LookBehind for a left parenthesis then zero or more characters, and LookAhead for zero or more character…

ChatGPT
- 5,334
- 12
- 50
- 69
-1
votes
2 answers
InDesign GREP reformatting of Time Ranges
Indesign GREP newbie here. I'm receiving text of times that requires reformating. How would I format time ranges using a GREP code to omit the first "am" or "pm" from any time ranges that have "am" or "pm" twice in the same time range?
Also, I'm…

NoviceDave
- 1
- 1
-2
votes
1 answer
GREP to find and change after a number in InDesign
Is there a grep to find and change after a number input a force line break?
I have some like this
"1651651 John Doe"
The number is variable , and the name too.
I want to do that
"1651651
John Doe"

Rafa
- 11
-2
votes
1 answer
Removing all language tags from InDesign file
When I export my InDesign file that I was given by a designer to HTML there are hundreds of language span tags scattered all over the place. Example below.
How can I remove these language spans from the InDesign file instead of having to remove them…

Dpuiatti
- 95
- 1
- 9
-2
votes
2 answers
GREP expression
I need help with a GREP expression to find and replace a variable group of words.
The sentence always starts with the same two words (Bold italicized) and always ends with a (colon), but the bit in the middle varies.
So I need to search for:
Bold…

RexTheRunt
- 141
- 1
- 3
- 12
-3
votes
3 answers
In InDesign, is there a way to bold a whole word that has one bold character?
I'm working on an index in InDesign. Some of the page numbers are in bold, others are in italics or regular. During editing, somehow the first numbers of some of the bold page numbers got changed. I've figured out how to highlight those page numbers…

Tanya Harvey
- 5
- 1
-3
votes
1 answer
Ignore line break in Indesign
In my Indesign document having the text "This is Indesign \napplication"----here \n is the line break.
Then, I am find text in grep
find grep:This is Indesign application
The text cannot be selected. because, the sentence contain line breaks.
So,…

A.D
- 5
- 2
-7
votes
1 answer
Select all paragraphs but first - REGEX
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.

gmorissette
- 291
- 1
- 3
- 13