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,45d3652405dab08f,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-06-29 02:23:21 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!skynet.be!newscore.univie.ac.at!newsfeed.sunet.se!news01.sunet.se!news.chalmers.se!pluto.his.se!193.10.176.89 From: Michael Andersson Newsgroups: comp.lang.ada Subject: Regular expressions??? Date: Fri, 29 Jun 2001 11:23:07 +0200 Organization: Hogskolan i Skovde Message-ID: <3B3C48FB.E40ECFA9@ida.his.se> NNTP-Posting-Host: pluto.his.se Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: nyheter.chalmers.se 993806589 8961 193.10.178.51 (29 Jun 2001 09:23:09 GMT) X-Complaints-To: abuse@chalmers.se NNTP-Posting-Date: 29 Jun 2001 09:23:09 GMT X-Mailer: Mozilla 4.77 [en] (X11; U; SunOS 5.7 sun4u) X-Accept-Language: en Xref: archiver1.google.com comp.lang.ada:9239 Date: 2001-06-29T09:23:09+00:00 List-Id: 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: 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