comp.lang.ada
 help / color / mirror / Atom feed
From: temp2@dagi3d.net (bmsv)
Subject: Pattern Matching
Date: 20 Apr 2003 05:15:55 -0700
Date: 2003-04-20T12:15:55+00:00	[thread overview]
Message-ID: <5d8ea641.0304200415.3bf3dccf@posting.google.com> (raw)

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.



             reply	other threads:[~2003-04-20 12:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-20 12:15 bmsv [this message]
2003-04-24 18:22 ` Pattern Matching Georg Bauhaus
  -- strict thread matches above, loose matches on Subject: below --
1997-10-07  0:00 Pattern matching Neil Goodgame
1997-10-08  0:00 ` Matthew Heaney
1997-10-09  0:00   ` Robert Dewar
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox