Article View: adobe.scripting.indesign
Article #2095[JS] Return search results
From: Fred_Goldman
Date: Fri, 09 Jan 2009 01:06
Date: Fri, 09 Jan 2009 01:06
8 lines
902 bytes
902 bytes
Is there any way is JS to search a string for a RegEx and return the results? For example: myString = "hello2009" myDigits = myString.search(/\d+/) Currently myDigits = "0". How do I make myDigits = "2009"?
Technical Details
Message-ID:
<0821859AF660DEFAB55388E0A4F536FE@in.webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!news2.glorb.com!news.astraweb.com!border5.newsrouter.astraweb.com!newshub.sdsu.edu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,54b38cedd87bfd75,start X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Fred_Goldman@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!news2.glorb.com!news.astraweb.com!border5.newsrouter.astraweb.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: [JS] Return search results Message-ID: <0821859AF660DEFAB55388E0A4F536FE@in.webcrossing.la2eafNXanI> Date: Thu, 8 Jan 2009 17:06:06 -0800 Lines: 8 User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit