regex help please
- From: "Jerry" <jpreston@xxxxxxxxxxxxxxxxx>
- Date: Thu, 28 Dec 2006 14:44:44 -0600
Hi!
It has been a while that I have done any regex. What I am trying to do is
break down a string like the following:
my $_ = " Emp# EmpStatus MStatus BeganEmp
EndedEmp";
I do not know many words will be in $_ or if there will be spaces at the
front of $_ or not.
Along the getting the words, I need to get all the spaces as a word between
the words and at the end as well.
I have started with:
/\s+(\w+)\s+/g;
print "parm: *1 $1*2 $2*3 $3*4 $4*6 $6*7 $7*8
$8*$9*$10*$11*$12*$_*<br>\n" ;
Thanks,
Jerry
I
.
- Follow-Ups:
- Re: regex help please
- From: John W. Krahn
- Re: regex help please
- From: Paul Lalli
- Re: regex help please
- From: Mirco Wahab
- Re: regex help please
- Prev by Date: Re: FAQ 5.2 How do I change, delete, or insert a line in a file, or append to the beginning of a file?
- Next by Date: Re: regex help please
- Previous by thread: Localized STDOUT
- Next by thread: Re: regex help please
- Index(es):