Article View: adobe.scripting.indesign
Article #681Re: Need help with Javascript
From: xbytor
Date: Sat, 07 Mar 2009 21:52
Date: Sat, 07 Mar 2009 21:52
8 lines
1046 bytes
1046 bytes
S_E@adobeforums.com wrote: > Thanks Peter, but I'm working on CS2. So i need a script that will find all instances of 10-99 and add a � sign str.replace(/\$0\.(\d\d)/g, "$1�"); In other words, replace the $0.50 with 50� in one pass instead of two. Not sure how this would look in InDesign-grep syntax. The str.replace call uses plain RegExp syntax.
Technical Details
Message-ID:
<2BE027724CF9FED03617E5A034A0799D@in.webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newshub.sdsu.edu!webcrossingReferences:
<59b825f3.-1@webcrossing.la2eafNXanI> <59b825f3.1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,bf65f0ea9955e42e X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII From: xbytor@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: Need help with Javascript Message-ID: <2BE027724CF9FED03617E5A034A0799D@in.webcrossing.la2eafNXanI> Date: Sat, 7 Mar 2009 13:52:33 -0800 References: <59b825f3.-1@webcrossing.la2eafNXanI> <59b825f3.1@webcrossing.la2eafNXanI> Lines: 14 User-Agent: Thunderbird 2.0.0.19 (Macintosh/20081209) MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit