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
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
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
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
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
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
> -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
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
[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
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
> 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
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
> 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"
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
14 matches
Mail list logo