Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Special Interests > Visual Media > Design and Graphics

Reply
 
Thread Tools Search this Thread Display Modes
Old Apr 28, 2011, 05:59 PM   #1
ChromeZero
macrumors newbie
 
Join Date: Apr 2011
Adobe Indesign GREP Help

Not so great at GREPs for Adobe Indesign. Would anyone care to help me figure out a GREP statement for the following scenarios:

1) Find letter x which occurs before letter a, ie 'xa'. Apply character style 1 to x.
2) Find letter combo xx. Apply character style 2 to the first x of this combo.

Any help would be much appreciated. I have an account on adobe.com, but i can't create threads there for some reason. This seemed like the next best place?
ChromeZero is offline   0 Reply With Quote
Old Apr 30, 2011, 08:37 AM   #2
macstudent
macrumors 6502
 
Join Date: Feb 2002
Location: Milwaukee, WI
I would recommend posting your question to the forums on www.indesignsecrets.com.

GREP questions get answered very quickly there.
__________________
Author | Instructor | Designer
macstudent is offline   0 Reply With Quote
Old Mar 4, 2014, 02:25 PM   #3
MiltK
macrumors newbie
 
Join Date: Mar 2014
Grep assist?

Hi All,
I’m trying to write a grep to convert improperly styled times on a calendar to the proper style.
I want the grep to find “am.” and change it to “a.m.”
But since there is the possibility of having an “am.” being part of a show title such as “Sam I am.” I wanted to use a look behind to exclude an “am.” that is preceded by an “I” and a blank space.

The negative lookbehind grep I was writing looks like this:
\s(am\.)(?<!I\s)

I also tried a positive lookbehind for an am. preceded by a space and a digit to narrow the types of am.s that could be selected
\s(am\.)(?<=\d)

The first one still selects the “am.” following the “I” and the space.
The second selects nothing.
Any ideas on how to use a lookbehind to select only the “am.” following a digit and a space?
MiltK is offline   0 Reply With Quote
Old Mar 6, 2014, 12:37 PM   #4
jamietshaw
macrumors member
 
Join Date: Sep 2009
Find: (x)a
Replace: $1


Find: (x)x
Replace: $1
jamietshaw is offline   0 Reply With Quote

Reply
MacRumors Forums > Special Interests > Visual Media > Design and Graphics

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Help with Adobe InDesign CS1 emduff Design and Graphics 2 Aug 5, 2008 01:01 PM
Publishing a book with Adobe InDesign. Please help emduff Design and Graphics 2 Jun 13, 2008 03:35 PM
FS: Adobe InDesign 2.0 sp555 Marketplace Archive 1 (Posts count) 0 Sep 30, 2003 10:24 AM
FS: Shrink Wrapped Adobe InDesign 2.0 mbutlerdelrio Marketplace Archive 1 (Posts count) 0 Jan 21, 2003 08:30 AM
FS: Adobe InDesign 2.0 frankjshin Marketplace Archive 1 (Posts count) 1 Jan 19, 2003 12:34 PM


All times are GMT -5. The time now is 09:17 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC