Path: news.daimi.aau.dk!poe From: Thomas Rosanski Newsgroups: comp.lang.beta Subject: Question about regexpr. Date: 21 Jun 1995 09:44:44 GMT Organization: DAIMI, Computer Science Dept. at Aarhus University Lines: 43 Approved: mailtonews@daimi.aau.dk Distribution: world Message-ID: <3s8pmc$ou2@belfort.daimi.aau.dk> NNTP-Posting-Host: daimi.daimi.aau.dk Hello, I have tryed to use the regexp library, but I had some problem. ORIGIN '~beta/basiclib/current/regexp' ---program:descriptor--- (# something: ^text; do Loop: (# do getLine -> something[]; (if 'Test:'->something.regexp_match then 'Yes, I found Test: at the Beginning of the line' -> putLine; else '.' -> put; if); restart Loop #) #) So, I wanted to search the input stream (something that comes throug a Unix pipe | ) and I wanted to find a line that starts with "Test:". But it doesn't work. I also tryed to use virtuell binding, but it seems that the do part was not executed. (I used the following line to test myprog: cat textfile | myprog where textfile is a file with several lines, one contains "Test: this is it" and myprog is the executable file, compiled from the above example) Help me please! -- Thomas Rosanski student at the University of Dortmund, Germany Internet: rosans00@marvin.informatik.uni-dortmund.de http://www.moscow.com/homepages/rosans00@marvin.informatik.uni-dortmund.de.html PS: Don't hesitate to contact me... ...if you are programming BETA or SML as a novice ...if you own an ATARI 8-bit micro ...if you have a good-paid job for me ...if you are a girl aged 18 to 22 ...if you can proof that 1+2^(2^100) is a prime number ...if you just wanna talk with me ...or for any other reason