Article View: adobe.scripting.indesign
Article #8121Regular Expression and $
From: luca
Date: Fri, 03 Nov 2006 15:49
Date: Fri, 03 Nov 2006 15:49
6 lines
826 bytes
826 bytes
I whant replace $Pos with _X but when i use the Regular Expression it's understand "$" like "Matches end of input or line" try with "\$" or "/$" or "%24"(escape of "$") but it doesn't work
re = new RegExp("$Pos _x","gi")
MyString= MyString.replace(re , "X");
HAve some Idea?
Technical Details
Message-ID:
<3bc22ba4.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.google.com!news2.volia.net!news.musoftware.de!news.albasani.net!news.isoc.lu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,c13ae6874b3af8e5 X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: luca Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.google.com!news2.volia.net!news.musoftware.de!news.albasani.net!news.isoc.lu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Regular Expression and $ Message-ID: <3bc22ba4.-1@webcrossing.la2eafNXanI> Date: Fri, 3 Nov 2006 07:49:54 -0800 Lines: 8 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit