Hi --
I made the little tester below. To simplify the parsing I added '\"'
at the beginning and 'x\"'the end. I have tried a number of values for $regex
and even the best ones:
&test_split('\".+?\"', $string);
&test_split('"(.*?)"', $string);
&test_split('\".+?\\"', $string);
&test_split(
> Where did you find the word student anywhere in the post ?...
> Nowhere did it say that you have to use spliti either.
I agree that nowhere did it "say" any of that. That was just me reading
between the lines -- except that she has said in the past that she's a
student (and the .edu on the emai
Michael D. Smith wrote:
Firstly - please trim your posts.
> The thing is lorid is the student. If she's trying to use spliti
Where did you find the word student anywhere in the post ?
> spliti(regexp patter,str,max split)
> spliti(":",$my_Propellar_Data,15);
>
> That's probably the assignment,
/7.1 (ax)
X-Accept-Language: en-us, en
To: lorid <[EMAIL PROTECTED]>
CC: perl users <[EMAIL PROTECTED]>
Subject: Re: reg exp help please
X-PMX-Version: 4.0.1.69468
X-PMX-Version: 4.1.0.84286
X-PerlMx-Spam: Gauge=, Probability=8%, Report='SUPERLONG_LINE
0.003, X_ACCEPT_LAN
Title: RE: reg exp help please
Hi,
I've written a small regexp that prints out the different values being passed, i hope it helps. Here is the code:
$string = "a:7:{i:0;s:19:\"MadhatterSize=Adult\";i:1;s:20:\"MadHatterColors=blue\";i:2;s:15:\"MadHat
lorid wrote:
> Here is the string Im trying to split (its a cookie str)
> MadHatter Data:
> a:7:{i:0;s:19:\"MadhatterSize=Adult\";i:1;s:20:\"MadHatterColors=blue\";i:2;s:15:\"MadHatter_Qty=1\";i:3;s:26:\"product_name=Madhatter_Hat\";i:4;s:8:\"cd_num=2\";i:5;s:4:\"x=39\";i:6;s:4:\"y=12\";}
>
> the
lorid wrote:
>
> Here is the string Im trying to split (its a cookie str)
> MadHatter Data:
>
a:7:{i:0;s:19:\"MadhatterSize=Adult\";i:1;s:20:\"MadHatterColors=blue\";i:2;s:15:\"MadHatter_Qty=1\";i:3;s:26:\"product_name=Madhatt
er_Hat\";i:4;s:8:\"cd_num=2\";i:5;s:4:\"x=39\";i:6;s:4:\"y=12\";}
>
> th
Here is the string Im trying to split (its a cookie str)
MadHatter Data:
a:7:{i:0;s:19:\"MadhatterSize=Adult\";i:1;s:20:\"MadHatterColors=blue\";i:2;s:15:\"MadHatter_Qty=1\";i:3;s:26:\"product_name=Madhatter_Hat\";i:4;s:8:\"cd_num=2\";i:5;s:4:\"x=39\";i:6;s:4:\"y=12\";}
the data I want is
Madhatt