Article View: adobe.scripting.indesign
Article #1591Re: CS3 Javascript - finding the paragraph which contain the index page reference
From: Peter Kahrel
Date: Sun, 01 Feb 2009 13:35
Date: Sun, 01 Feb 2009 13:35
9 lines
1097 bytes
1097 bytes
Br Scubilion,
It is true that JavaScript doesn't know about lookbehind, but as you're using InDesign's GREP, not JavaScript's, that's not the problem: InDesign does know lookbehind. The problem in your code is probably that you forgot to escape the backslashes. Please try the following:
"(?<=~b)\\u{1,2} \\d{1,2}"
I just assume that this should be done in VB: I know it should in JS, but as I don't know much about VB I'm guessing here.
Peter
Technical Details
Message-ID:
<59b75803.27@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossingReferences:
<59b75803.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,4423827cf06ba747 X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Peter Kahrel" <kahrel@kahrel.plus.com> Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: CS3 Javascript - finding the paragraph which contain the index page reference Message-ID: <59b75803.27@webcrossing.la2eafNXanI> Date: Sun, 1 Feb 2009 05:35:07 -0800 References: <59b75803.-1@webcrossing.la2eafNXanI> Lines: 13 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit