From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1df88f066edd75cb,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-04-20 05:15:55 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: temp2@dagi3d.net (bmsv) Newsgroups: comp.lang.ada Subject: Pattern Matching Date: 20 Apr 2003 05:15:55 -0700 Organization: http://groups.google.com/ Message-ID: <5d8ea641.0304200415.3bf3dccf@posting.google.com> NNTP-Posting-Host: 80.224.98.208 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1050840955 14215 127.0.0.1 (20 Apr 2003 12:15:55 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 20 Apr 2003 12:15:55 GMT Xref: archiver1.google.com comp.lang.ada:36315 Date: 2003-04-20T12:15:55+00:00 List-Id: Hi. I have tried to use the Regpat package in order to find occurrences in a text string. In the packge I read I could get undefined number of occurrences, but when trying to use it, I says that the variable where the occurrences will be stored(the Match_array variable) needs initialization. So is it possible to get an undefined number of occurrences? This an example string I have: city[hotel1,hotel2,hotel3]{restaurant1, restaurant2} the line could also look like this: city{restaurant1, restaurant2}[hotel1,hotel2,hotel3] And I would like to get in one array(or another data type) all the restaurants, in another one all the hotels and in on single string the city name. Any idea how to get this? thx in advance.