Re: Need help with regex

2004-11-04 Thread John W. Krahn
Kevin Old wrote: Hello everyone, Hello, I have a line like the following: my $line = "31232000 07/28/04 DUC000 NET 60 DAYS RD64 UPSGNDSVR PREPAID"; What I'm looking for in lines like this are the customer number (DUC000) and a "code" that starts with UPS, or if the code doesn

Re: Need help with regex

2004-11-04 Thread Kevin Old
On Thu, 4 Nov 2004 10:58:16 -0600, Robert Citek <[EMAIL PROTECTED]> wrote: > > On Thursday, Nov 4, 2004, at 10:49 US/Central, Scott Pham wrote: > > Why don't you just split the line and use the whitespace as separator? > > > > $line =~ s/\s+/ /; > > my > > ($record,$date,$cust,$temp1,$temp2,$temp3

Re: Need help with regex

2004-11-04 Thread Robert Citek
On Thursday, Nov 4, 2004, at 10:49 US/Central, Scott Pham wrote: Why don't you just split the line and use the whitespace as separator? $line =~ s/\s+/ /; my ($record,$date,$cust,$temp1,$temp2,$temp3,$temp4,$temp5,$shipping,$paid ) = split (/ /,$line); As I was reminded the other day, split work

RE: Need help with regex

2004-11-04 Thread Scott Pham
04 10:38 AM To: [EMAIL PROTECTED] Subject: Need help with regex Hello everyone, I have a line like the following: my $line = "31232000 07/28/04 DUC000 NET 60 DAYS RD64 UPSGNDSVR PREPAID"; What I'm looking for in lines like this are the customer number (DUC00

Re: Need help with regex

2004-11-04 Thread Robert Citek
On Thursday, Nov 4, 2004, at 09:38 US/Central, Kevin Old wrote: my $line = "31232000 07/28/04 DUC000 NET 60 DAYS RD64 UPSGNDSVR PREPAID"; What I'm looking for in lines like this are the customer number (DUC000) and a "code" that starts with UPS, or if the code doesn't start with U

Re: Need help with regex

2004-11-04 Thread Kevin Old
On Thu, 4 Nov 2004 10:05:08 -0600, Larsen, Errin M HMMA/IT <[EMAIL PROTECTED]> wrote: > > -Original Message- > > From: Kevin Old [mailto:[EMAIL PROTECTED] > > Sent: Thursday, November 04, 2004 9:38 AM > > To: [EMAIL PROTECTED] > > Subject: Need he

RE: Need help with regex

2004-11-04 Thread Larsen, Errin M HMMA/IT
> -Original Message- > From: Kevin Old [mailto:[EMAIL PROTECTED] > Sent: Thursday, November 04, 2004 9:38 AM > To: [EMAIL PROTECTED] > Subject: Need help with regex > > > Hello everyone, > Hi! > I have a line like the following: > > my $lin

Need help with regex

2004-11-04 Thread Kevin Old
Hello everyone, I have a line like the following: my $line = "31232000 07/28/04 DUC000 NET 60 DAYS RD64 UPSGNDSVR PREPAID"; What I'm looking for in lines like this are the customer number (DUC000) and a "code" that starts with UPS, or if the code doesn't start with UPS idea

Re: Need help with regex

2004-07-31 Thread Gunnar Hjalmarsson
[EMAIL PROTECTED] wrote: So, I need some help on how to write a regexp to get the values after inflating, that is the filenames, and put them in an array. Both outputs above are stored on a $stdout php variable. Well, this list is for discussing Perl, not PHP. If you want a regexp in PHP, you'd b

Need help with regex

2004-07-31 Thread linuxnand
Hello, I have as the output of an unzip command called from a script the following: unzip test.zip Archive: test.zip inflating: arch1.txt inflating: arch2.txt inflating: arch3.txt inflating: arch4.txt inflating: arch5.txt inflating: arch6.txt The same I have from a pkware execution : pku

Need help with regex

2003-09-24 Thread Segree, Gareth
> MAN 2 MAN18800101.eps The filenames will not have this sort of naming convention. Files will look like the following. ALLY20030111W.eps TEST W20030122 HELP WANTED20030901WW.eps GIRL WATCH BIRD 20030101 HELPER 20030121.CW.eps -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

Re: Need help with regex

2003-09-24 Thread Rob Dixon
Gareth Segree wrote: > > I have a directory of files that I want to move to another directory. > (eg. ALLY20030111W.eps > TEST W20030122 > HELP WANTED20030901WW.eps > GIRL WATCH BIRD 20030101 > etc..) > > I want to be able to parse the filename and replace the date portion with > any

Need help with regex

2003-09-23 Thread Segree, Gareth
> I have a directory of files that I want to move to another directory. > (eg. ALLY20030111W.eps > TEST W20030122 > HELP WANTED20030901WW.eps > GIRL WATCH BIRD 20030101 > etc..) > > I want to be able to parse the filename and replace the date portion with > any date > (eg $1="ALLY"

NEED HELP WITH REGEX....

2003-07-14 Thread magelord
hi, i have this regex: \.(?!.png|.log)[^.]*$ how can i replace the .before png and log with nothing? the problem is, the alternation can be longer, like that: \.(?!.png|.log|.txt|.c|.cpp and so on )[^.]*$ how could i do that? THANKS:-) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addit