From brandon@mojo.cold.org Tue Aug 28 06:53:12 2001 From: brandon@mojo.cold.org (brandon@mojo.cold.org) Date: Mon, 27 Aug 2001 23:53:12 -0600 Subject: [Coldstuff] New Server Message-ID: <20010827235312.A22823@mojo.cold.org> Coldstuff is now on a new server, running mailman. Don't be surprised if you start getting messages from Mailman. The messages will include information on how you can manage your presence on the list. -Brandon From coldstuff@cold.org Fri Aug 31 03:16:11 2001 From: coldstuff@cold.org (Adam Cormany) Date: Thu, 30 Aug 2001 21:16:11 -0500 Subject: [Coldstuff] regexp Message-ID: <001801c131c2$e7611400$c8bab218@spdwy1.in.home.com> This is a multi-part message in MIME format. ------=_NextPart_000_0015_01C13198.FE404760 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I'm not good at regexp at all. I'm the first to admit that:) I'm having = trouble figuring out how to do this in cold: I want to check a string for "{" or "{a", "{b", "{c" .. "{z", but I = don't want to find "{a}", "{b}", "{c}". How can I achieve this on cold = with its regexp? Or is there a better way of doing this? The reason why I'm doing this is I want to find the above occurrences = and change them from "{a" to "\{a". I don't want to touch the "{a}" = since they are tags. Thanks for all your help before and now, Adam ------=_NextPart_000_0015_01C13198.FE404760 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I'm not good at regexp at all. I'm the = first to=20 admit that:) I'm having trouble figuring out how to do this in=20 cold:
 
I want to check a string for "{" or = "{a", "{b",=20 "{c" .. "{z", but I don't want to find "{a}", "{b}", "{c}". How can I = achieve=20 this on cold with its regexp? Or is there a better way of doing=20 this?
 
The reason why I'm doing this is I want = to find the=20 above occurrences and change them from "{a" to "\{a". I don't want to = touch the=20 "{a}" since they are tags.
 
Thanks for all your help before and=20 now,
Adam
------=_NextPart_000_0015_01C13198.FE404760-- From coldstuff@cold.org Fri Aug 31 03:36:43 2001 From: coldstuff@cold.org (coldstuff@cold.org) Date: Thu, 30 Aug 2001 20:36:43 -0600 Subject: [Coldstuff] regexp In-Reply-To: <001801c131c2$e7611400$c8bab218@spdwy1.in.home.com>; from acormany@home.com on Thu, Aug 30, 2001 at 09:16:11PM -0500 References: <001801c131c2$e7611400$c8bab218@spdwy1.in.home.com> Message-ID: <20010830203643.A22837@mojo.cold.org> On Thu, Aug 30, 2001 at 09:16:11PM -0500, Adam Cormany wrote: > I'm not good at regexp at all. I'm the first to admit that:) I'm having trouble figuring out how to do this in cold: > > I want to check a string for "{" or "{a", "{b", "{c" .. "{z", but I don't want to find "{a}", "{b}", "{c}". How can I achieve this on cold with its regexp? Or is there a better way of doing this? > > The reason why I'm doing this is I want to find the above occurrences and change them from "{a" to "\{a". I don't want to touch the "{a}" since they are tags. > > Thanks for all your help before and now, > Adam ;strsed("asdf{a bcd", "({[^}]+)", "\\%1"); => "asdf\{a bcd" -Brandon From coldstuff@cold.org Fri Aug 31 03:39:28 2001 From: coldstuff@cold.org (coldstuff@cold.org) Date: Thu, 30 Aug 2001 20:39:28 -0600 Subject: [Coldstuff] regexp In-Reply-To: <20010830203643.A22837@mojo.cold.org>; from brandon@roguetrader.com on Thu, Aug 30, 2001 at 08:36:43PM -0600 References: <001801c131c2$e7611400$c8bab218@spdwy1.in.home.com> <20010830203643.A22837@mojo.cold.org> Message-ID: <20010830203928.B22837@mojo.cold.org> On Thu, Aug 30, 2001 at 08:36:43PM -0600, brandon@roguetrader.com wrote: > ;strsed("asdf{a bcd", "({[^}]+)", "\\%1"); > => "asdf\{a bcd" Sorry, that will not work properly, try: strsed("asdf{a} bcd", "({[^}]+[^}])", "\\%1");