Path: ...!news.misty.com!weretis.net!feeder9.news.weretis.net!i2pn.org!i2pn2.org!.POSTED!not-for-mail From: Retro Guy Newsgroups: misc.test,comp.lang.misc Subject: Re: perl test Date: Fri, 6 Sep 2024 16:51:15 -0700 Organization: i2pn2 (i2pn.org) Message-ID: References: <7e8b459c7297ad24dde92aa1fd073b21@www.novabbs.com> <877cbx4orz.fsf@tilde.institute> <51e8c77eaba5ea4084d0a234a71a4f2e@www.novabbs.com> <7e23f0180a430b8429af2514ba56463b@www.novabbs.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Injection-Date: Fri, 6 Sep 2024 23:51:15 -0000 (UTC) Injection-Info: i2pn2.org; logging-data="1117010"; mail-complaints-to="usenet@i2pn2.org"; posting-account="Gg8gAsZLN5FnWZrpbmz42d6ib2C2ewfwYI9Q557pxrY"; User-Agent: 40tude_Dialog/2.0.15.41 X-Spam-Checker-Version: SpamAssassin 4.0.0 Bytes: 1513 Lines: 16 On Fri, 6 Sep 2024 23:38:08 -0000 (UTC), Lawrence D'Oliveiro wrote: > On Fri, 6 Sep 2024 12:06:32 +0000, Retro Guy wrote: > >> On Fri, 6 Sep 2024 2:14:33 +0000, Lawrence D'Oliveiro wrote: >> >>> «str-expr».replace('"', '""') >> >> The Perl code above escapes quotes, so adds '\' before any " > > All right, then: > > «str-expr».replace('"', '\\"') That's readable and makes sense. Now I'm back to php where I somewhat know what I'm doing :)