re: reg exp help please

2003-12-08 Thread Barry.Dancis
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(

Re: reg exp help please

2003-12-08 Thread Michael D. Smith
> 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

Re: Fwd: Re: reg exp help please

2003-12-07 Thread $Bill Luebkert
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,

Fwd: Re: reg exp help please

2003-12-07 Thread Michael D. Smith
/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

RE: reg exp help please

2003-12-07 Thread KGalal
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

Re: reg exp help please

2003-12-07 Thread $Bill Luebkert
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

Re: reg exp help please

2003-12-07 Thread Rob Dixon
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

reg exp help please

2003-12-07 Thread lorid
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