Re: [SPAM DETECT] split and grouping in regexp
- From: arnaldo@xxxxxxxxxxx (Arnaldo Guzman)
- Date: Tue, 31 Oct 2006 01:18:52 -0500
On Mon, 2006-10-30 at 02:34 +0100, xavier mas wrote:
A Dimarts 31 Octubre 2006 02:22, Daniel Kasak va escriure:
my ( $yyyy, $mm, $dd ) = split /(-|\/)/, $yyyymmdd;
split function can't accept an expression on its syntax, only a character as
separator field.
--
Xavier Mas
To Xavier Mas:
I think you're getting confused with join(), You can indeed give split()
a regular expression as its first argument.
.
- References:
- split and grouping in regexp
- From: Daniel Kasak
- Re: [SPAM DETECT] split and grouping in regexp
- From: Xavier Mas
- split and grouping in regexp
- Prev by Date: Re: split and grouping in regexp
- Next by Date: Re: split and grouping in regexp
- Previous by thread: Re: [SPAM DETECT] split and grouping in regexp
- Next by thread: RE: split and grouping in regexp
- Index(es):
Relevant Pages
|