Re: Troubles with reg exp

2002-02-12 Thread Tanton Gibbs
HTH, Tanton - Original Message - From: "Mark Anderson" <[EMAIL PROTECTED]> To: "Stuart Clark" <[EMAIL PROTECTED]> Cc: "Beginners@Perl. Org" <[EMAIL PROTECTED]> Sent: Tuesday, February 12, 2002 3:59 PM Subject: RE: Troubles

RE: Troubles with reg exp

2002-02-12 Thread Mark Anderson
If you really want a regexp: if (/^[^:]*:[^:]*:[^:]*:[^:]*:[^:]*:[^:]*:[^:]*$/) { This looks for ^ (the beginning of the line), [^:]* (0 or more characters that are not ':'), : (a colon), and ultimately $ the end of the line. /\/\ark -Original Message- From: Stu

Re: Troubles with reg exp

2002-02-11 Thread John W. Krahn
Stuart Clark wrote: > > Hi All, Hello, > I'm having trouble with this regular expression > I have data file with colon separated delimiters > The data below has 6 colon delimiters > I want to check to make sure that none of the lines of data has more or less > than 6 colons in it (EG: Lets say

Re: Troubles with reg exp

2002-02-11 Thread Dave Benware
Stuart Clark wrote: > > Hi All, > I'm having trouble with this regular expression > I have data file with colon separated delimiters > The data below has 6 colon delimiters > I want to check to make sure that none of the lines of data has more or less > than 6 colons in it (EG: Lets say David ent