Path: news.cs.au.dk!not-for-mail From: "Sascha Kimmel" Newsgroups: comp.lang.beta Subject: REGEXP not doing anything! Date: 10 Jun 1999 07:39:58 -0000 Organization: University of Aarhus, Department of Computer Science (DAIMI) Lines: 46 Approved: mailtonews@cs.au.dk Distribution: world Message-ID: <19990610073958.20891.qmail@noatun.mjolner.dk> Reply-To: "Sascha Kimmel" NNTP-Posting-Host: daimi.cs.au.dk X-Trace: xinwen.cs.au.dk 929000511 4421263 255.255.255.255 (10 Jun 1999 07:41:51 GMT) X-Complaints-To: news@cs.au.dk NNTP-Posting-Date: 10 Jun 1999 07:41:51 GMT Xref: news.cs.au.dk comp.lang.beta:11986 Hi! I want to use the regexp fragment for parsing purposes, but even your simplest demo program (p. 86 in mia90-08.pdf) does not work with BETA 4.1: ORIGIN '~beta/basiclib/v1.6/betaenv'; INCLUDE '~beta/basiclib/v1.6/regexp'; -- program: descriptor -- (# t:^text; do 'Hello world' -> t[]; ('\\', '\\0 champion') -> t.regexp_replace; t[] -> putline; (* prints 'Hello world champion' *) #) This program just produces a "Hello world" and not "Hello world champion". The very very simple ORIGIN '~beta/basiclib/v1.6/betaenv'; INCLUDE '~beta/basiclib/v1.6/regexp'; -- program: descriptor -- (# t:^text; do 'Hello BETA!' -> t[]; ('BETA', 'Mjolner') -> t.regexp_replace; t[] -> putline; (* should print 'Hello Mjolner!' *) #) only gives me a "Hello BETA!" and not the string that should be there. Is the regexp fragment working in some way? Any quick help is appreciated. Regards, Sascha Kimmel