Article View: adobe.scripting.indesign
Article #1235Re: it can not search the text with Grep, what's wronge with my code?
From: Peter Kahrel
Date: Mon, 16 Feb 2009 09:25
Date: Mon, 16 Feb 2009 09:25
17 lines
1071 bytes
1071 bytes
Do you want to find Arabic or email addresses? Whichever, in your other topic on the same subject I replied that your GREP is faulty:
app.findGrepPreferences.findWhat = "[^A-Za-z0-9/.-]+";
should be
app.findGrepPreferences.findWhat = "[^A-Za-z0-9\\.-]+";
But this isn't going to find Arabic or email addresses: it finds everything that's not an unaccented Latin letter, a digit, dot, or hyphen.
Peter
Technical Details
Message-ID:
<59b7f00d.1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossingReferences:
<59b7f00d.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,72cfdd46072287ca 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: it can not search the text with Grep, what's wronge with my code? Message-ID: <59b7f00d.1@webcrossing.la2eafNXanI> Date: Mon, 16 Feb 2009 01:25:48 -0800 References: <59b7f00d.-1@webcrossing.la2eafNXanI> Lines: 11 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit