-
1. Re: Trying to use GREP to truncate names in certain words..
[Jongware] Dec 1, 2011 1:05 PM (in response to iBabs2)Top of me head* but something like this ought to do the trick.
search for
(?<=^\d{8}).+$
and replace with nothing. It finds everything on a single line that starts with 8 digits but "marks" only the non-digit par. Hence, you can safely replace with nothingness.
You probably used a simpler variant before, like
^(\d{8}).+$
replacing with the first parenthesized expression, "$1", but mine ought to be more document-friendly as it only deletes and doesn't need to tocuh any more than absolutely required.
* Holler if it don't work.
-
2. Re: Trying to use GREP to truncate names in certain words..
iBabs2 Dec 1, 2011 3:00 PM (in response to [Jongware])Hello Jongware!!!
I'm a little rusty...was putting in [] instead of {}
perfect!!
thanks so much!!
babs
-
3. Re: Trying to use GREP to truncate names in certain words..
Jesse Brown Aug 1, 2013 2:41 PM (in response to [Jongware])Can you apply this you idea to data in a table where the content in a cell wraps?
What I want to do is have the wrapped data truncate with "..."
I thought I could do a find indescripment hyphen and replace with elipses. But wasn't able to get that to work. Also, wouldn't work like I would want it too. Image attached for illustration.
Do you have any idea I a person could do this?
Any ideas would be appreciated.
Thanks.
-
4. Re: Trying to use GREP to truncate names in certain words..
P Spier Aug 2, 2013 8:42 AM (in response to Jesse Brown)I think you should start a new thread over in scripting: InDesign Scripting




