Newbie: RegEx portions of a string into an array

2005-01-10 Thread ken . brown
What I have is $string = my name is %name%, age %age%, department %dept%; What I want is The % wrapped text returned to an array like My @list = GetVars($string); My problem I don't know what sub GetVars will look like# Anyone done something similar or know how I could

RE: Newbie: RegEx portions of a string into an array

2005-01-10 Thread Joe Discenza
[EMAIL PROTECTED]wrote, on Mon 1/10/2005 06:53 : What I have is : : $string = my name is %name%, age %age%, department %dept%; : : What I want is : : The % wrapped text returned to an array like : : my @list = GetVars($string); : : Anyone done something similar or know how I could do

Re: Newbie: RegEx portions of a string into an array

2005-01-10 Thread $Bill Luebkert
Joe Discenza wrote: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]* *wrote, on Mon 1/10/2005 06:53 : What I have is : : $string = my name is %name%, age %age%, department %dept%; : : What I want is : : The % wrapped text returned to an array like : : my @list =