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 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-06-30 13:38:34 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newshub2.home.com!news.home.com!news1.rdc1.va.home.com.POSTED!not-for-mail From: "R. Srinivasan" Newsgroups: comp.lang.ada References: <3B3C48FB.E40ECFA9@ida.his.se> Subject: Re: Regular expressions??? X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Message-ID: Date: Sat, 30 Jun 2001 20:38:33 GMT NNTP-Posting-Host: 24.23.183.230 X-Complaints-To: abuse@home.net X-Trace: news1.rdc1.va.home.com 993933513 24.23.183.230 (Sat, 30 Jun 2001 13:38:33 PDT) NNTP-Posting-Date: Sat, 30 Jun 2001 13:38:33 PDT Organization: Excite@Home - The Leader in Broadband http://home.com/faster Xref: archiver1.google.com comp.lang.ada:9283 Date: 2001-06-30T20:38:33+00:00 List-Id: you may want to take a look at the "expat" library and the binding i developed for the expat library. expat library is available from sourceforge. The binding is available from http://alibrowse.sourceforge.net Look for adabind-expat.zip "Michael Andersson" wrote in message news:3B3C48FB.E40ECFA9@ida.his.se... > 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