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
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
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
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