Tagged Questions

A Unix command used to search files for the occurrence of a string of characters that matches a specified pattern.

learn more… | top users | synonyms

4
votes
2answers
72 views

InDesign, Grep and Syntax Highlighting

I have to make an e-book that contains code snippets. I am using GREP to select all code tags (bounded by <> — triangular brackets), and apply a custom style to them. The RegEx I have developed: ...
0
votes
0answers
36 views

How to create a grep style that Ignores words between grep results

An example sentence: •Select this•not this•select this• The bullet points in my case are non-breaking spaces My grep statement is (?<=~S).*?(?=~S) which selects from the first bullet(non-breaking ...
4
votes
1answer
89 views

How can I use GREP to get all text between the third and fourth underscore in a file name?

In the firm I work for, they have file naming system. It always has 5 sections as in the examples below: File Name: YYMMDD_PROJECT NUMBER_PROJECT NAME_FILE NAME_initials.ext 140527_207_AL MURR ...
1
vote
3answers
230 views

GREP - Apply Character Style until carriage return

Is there a way to tell InDesign via GREP to apply a Character Style to the first paragraph of a text box before a carriage return? Not a forced line break. A carriage return. Thank you
0
votes
0answers
247 views

Change all uppercase letters in a named style to initial case (Indesign Grep)

This is my first post here. I have Peter's (forgot his last name) excellent change case-script so I can do the replacement with no problem, but the find is baffling me. I have a glossary where the ...
1
vote
2answers
108 views

Change HTML tag styles with GREP in InDesign

I have some HTML in a text and I would like to apply a character style to the HTML tags: <p>This is some <strong>HTML</strong> I want to use.</p> I want to only change the ...
0
votes
0answers
63 views

Indesign Grep Style: Swap numbers and then Next and nested styles with repetition

I have a tricky text to style and I am having some issues, and need your help. Example text: 2012 Some product name name, State $50 This is a very impressive young pinot, with tremendous ...
1
vote
1answer
119 views

How can I use GREP in InDesign to swap numbers then nest, then repeat

Long time lurker, first time poster! Your tips are really valuable and have taught me what I know till now about GREP, thank you! I have a tricky text to style and I am having some issues, and need ...
2
votes
1answer
81 views

GREP duplicate line of text

Is it possible to duplicate lines of text with GREP? Here is exactly what I would like to do; I have a list of letters and numbers that looks like this: R1H3BOA2HA4 R1H3BOA2H4 R1H2H3BO4 ...
2
votes
1answer
334 views

How could I use Indesign's find by grep feature to find and format words between to underscores?

Lets say I have a bunch of text that needs to be italic. Throughout my text, italics are represented as: _word_ _any_ _car_ And so on... I want to find these, and replace them with word, car, any, ...
0
votes
1answer
110 views

How to make GREP match everything between two markers, regardless the Forced Line Brake occurance

I'm wondering if it's possible to make GREP "jump over" the Forced Line Brake (FLB), while he is searching for particular keyword. I have a text frame containing multiple Companies described by three ...
3
votes
1answer
286 views

Indesign numbering new line & indentation

I am getting crazy with these two things and after some days of getting nothing from Web search and experimentation I come to you. I am using Indesign CS4 and cannot get to do these two things: 1) ...
2
votes
1answer
924 views

Get the start and finish of text in a certain character style in Indesign GREP

I've been fighting with InDesign GREP find/change quite a bit and couldn't find any way to get it to look at the start and the end of a character style. This is necessary if, for example, you want to ...
2
votes
3answers
460 views

How can I use GREP to find all text between bullet and equals sign in bullet list in InDesign?

I have a bulleted list with several entries, it's a list of keyboard shortcuts, similar to the text below: alt+shift+ctrl+2 = Lock Others alt+shift+ctrl+3 = Hide Others alt+ctrl+b = Blend ...