comp.lang.ada
 help / color / mirror / Atom feed
From: "David C. Hoos, Sr." <david.c.hoos.sr@ada95.com>
To: <comp.lang.ada@ada.eu.org>
Cc: <michael@ida.his.se>
Subject: Re: Regular expressions???
Date: Fri, 29 Jun 2001 05:05:52 -0500
Date: 2001-06-29T05:05:52-05:00	[thread overview]
Message-ID: <mailman.993809217.30704.comp.lang.ada@ada.eu.org> (raw)
In-Reply-To: 3B3C48FB.E40ECFA9@ida.his.se

There is nothing defined in the language for regular expressions.

However, if you are using GNAT, you can use the GNAT.Regexp
package to do what you want.

----- Original Message ----- 
From: "Michael Andersson" <michael@ida.his.se>
Newsgroups: comp.lang.ada
To: <comp.lang.ada@ada.eu.org>
Sent: June 29, 2001 4:23 AM
Subject: Regular expressions???


> Hi!
> I'm trying to write a simple XML-parser and I wonder how regular
> expressions in Ada works. Can I use variables as in Pearl so that these
> are assigned a value according to the values found in the string. Say
> for example that I have a file looking like this:
> <Name="Michael" Phone="7980438" Age="22"/>
> I want to extract Michael, 7989438 and 22 from the string above and
> assign these to some variables. Is it possible to use regular
> expressions in Ada to do this or do I have to use procedure/functions
> from the Ada.Strings package?
> 
> Thanks!
> /Michael Andersson
> _______________________________________________
> comp.lang.ada mailing list
> comp.lang.ada@ada.eu.org
> http://ada.eu.org/mailman/listinfo/comp.lang.ada
> 




  reply	other threads:[~2001-06-29 10:05 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-29  9:23 Regular expressions??? Michael Andersson
2001-06-29 10:05 ` David C. Hoos, Sr. [this message]
2001-06-29 16:13 ` Ray Blaak
2001-07-02  9:54   ` M. A. Alves
2001-07-03  8:25     ` Emmanuel Briot
2001-07-04  4:53       ` Ray Blaak
2001-06-30 14:49 ` Florian Weimer
2001-06-30 20:38 ` R. Srinivasan
replies disabled

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