1:09
To: Wagner-David
Cc: 'Beginners'
Subject: RE: Trouble w/ regex when no data at end of string
On Feb 9, Wagner-David said:
> The system I am working on has setup for named processes as
>$. What I am doing is converting a number of scripts to Perl and
>trying to m
On Feb 9, Wagner-David said:
> The system I am working on has setup for named processes as
>$. What I am doing is converting a number of scripts to Perl and
>trying to make it easier to do.
>
> The format is as stated and I have done a chomp on the line.
That's why your regex fai
d a
\$ in front of (\w+), but otherwise I get the above.
Wags ;)
-Original Message-
From: Jeff 'japhy' Pinyan [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 09, 2002 18:30
To: Wagner-David
Cc: 'Beginners'
Subject: Re: Trouble w/ regex when no data at end of string
On Feb 9, Wagner-David said:
> $ description
> $ description [,;]
>$ description nnn,nnn
> $ description [,;]nnn,nnn
> $ description nnn,nnn[,;]nnn,nnn
>
> /^\s*\$(\w+)\s+(.+)\s+([,;\s]{0,}(\d{1,3}\s*,{1}\s*\d{0,3}))*/gi
What exactly are you trying to extract? I thi
I have a field which can be setup like:
$ description
$ description [,;]
$ description nnn,nnn
$ description [,;]nnn,nnn
$ description nnn,nnn[,;]nnn,nnn
I am trying to use this format:
/^\s*\$(\w+)\s+(.+)