Re: How to a parse a string in perl

2002-05-10 Thread drieux
On Friday, May 10, 2002, at 10:52 , Eric Wang wrote: > Can you explain what all that means? > specifically the /!([^!]*)/g part > and the $1 part > > I only had limited automaton experience > thanks for your time the scary part is that this is part of the Regular Expression Game, and less to do

Re: How to a parse a string in perl

2002-05-10 Thread Eric Wang
Can you explain what all that means? specifically the /!([^!]*)/g part and the $1 part I only had limited automaton experience thanks for your time Eric > You could use split(), but you'd have to get rid of the first > (empty) element. Instead, I would suggest the following regex: > > while

RE: How to a parse a string in perl

2002-05-10 Thread David Gray
> I want to slice up this variable into a single variable and > loop until its empty The variable is seperated via ! > explnation points and I want the numbers. This string can be > various in length ? Note it doesnt end with that delimiter. Help > > example > > $jims = "!23!45!67 Ho

Re: How to a parse a string in perl

2002-05-10 Thread Jeff 'japhy' Pinyan
On May 10, FLAHERTY, JIM-CONT said: >This string can be various in length ? Note it doesnt end with that >delimiter. Help > > $jims = "!23!45!67 You could use split(), but you'd have to get rid of the first (empty) element. Instead, I would suggest the following regex: while ($string =~ /!

How to a parse a string in perl

2002-05-10 Thread FLAHERTY, JIM-CONT
I want to slice up this variable into a single variable and loop until its empty The variable is seperated via ! explnation points and I want the numbers. This string can be various in length ? Note it doesnt end with that delimiter. Help example $jims = "!23!45!67