Re: Regular expression matching

2005-02-03 Thread Jay
On Thu, 3 Feb 2005 12:11:14 +0100, Tommy Nordgren <[EMAIL PROTECTED]> wrote: > > My problem is to generate from specs the lexical analyzer and parser > for the semantic > actions, which I wan't to allow writing in any object oriented language. > > The language to use will be specified in the inp

Re: Regular expression matching

2005-02-03 Thread Tommy Nordgren
Feb 3, 2005 kl. 4:25 AM skrev Tommy Nordgren: I have the need to generate and match a large number (Typically 50 - 200) of regular expressions. Each regular expression should be written in a subset of the perl regular expression syntax, or another suitable syntax. I have not committed to a speci

Re: Regular expression matching

2005-02-03 Thread Ing. Branislav Gerzo
Tommy Nordgren [TN], on Thursday, February 3, 2005 at 04:25 (+0100) typed the following: TN> I have the need to generate and match a large number (Typically 50 - TN> 200) of regular expressions. TN> Each regular expression should be written in a subset of the perl TN> regular expression syntax, o

Re: regular expression matching vertical tab

2005-01-20 Thread Matt Matijevich
>ord() returns the _decimal_ number 13 (octal 015, hexadecimal x0D) which is >the CR (carriage return) character *NOT* the VT (vertical tab) character. Well, that would be my problem. Thank you -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: regular expression matching vertical tab

2005-01-20 Thread John W. Krahn
Matt Matijevich wrote: I am having troubles matching the Vertical Tab character using regular expressions. I have a string, I have looped through every character in the string and printed out the value returned from ord(), and I get 13 for one of my chars. I have searched and apparently that is the

Re: regular expression matching exact numbers

2001-09-25 Thread Jeff 'japhy/Marillion' Pinyan
On Sep 25, Kredler Stefan said: >I'd like to match numbers and add them to an array if the array does not >contain the number. You'd want to use a hash, not an array. >let's assume $part[1] can hold the values in consecutive order e.g. 5, 1005, >5, 2000 then > >next if (grep /$part[1]/,