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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable 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-29 03:07:11 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!213.56.195.71!fr.usenet-edu.net!usenet-edu.net!enst!enst.fr!not-for-mail From: "David C. Hoos, Sr." Newsgroups: comp.lang.ada Subject: Re: Regular expressions??? Date: Fri, 29 Jun 2001 05:05:52 -0500 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: References: <3B3C48FB.E40ECFA9@ida.his.se> Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 993809230 66185 137.194.161.2 (29 Jun 2001 10:07:10 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Fri, 29 Jun 2001 10:07:10 +0000 (UTC) Cc: To: Return-Path: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.4 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , List-Archive: Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:9240 Date: 2001-06-29T05:05:52-05:00 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" Newsgroups: comp.lang.ada To: 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: > > 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 >