🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #8202

Re: Regular Expression and $

#8202
From: Dirk_Becker
Date: Fri, 03 Nov 2006 17:30
4 lines
800 bytes
I'd say to escape special characters use the special escape character.
But you mentioned you failed with \$ - strange.
For me this works:
alert("a$Posb".replace(/\$Pos/,"!"));
Technical Details
Message-ID: <3bc22ba4.4@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!news2.volia.net!news.musoftware.de!news.albasani.net!news.isoc.lu!webcrossing
References: <3bc22ba4.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,c13ae6874b3af8e5
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Dirk_Becker@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!news2.volia.net!news.musoftware.de!news.albasani.net!news.isoc.lu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: Regular Expression and $
Message-ID: <3bc22ba4.4@webcrossing.la2eafNXanI>
Date: Fri, 3 Nov 2006 09:30:04 -0800
References: <3bc22ba4.-1@webcrossing.la2eafNXanI>
Lines: 4
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit