ambuli
asked on
Perl how to search a pattern in a string
I need to parse a line in the following form:
ABCDx=20,y=3,z=4;
I want to get the values of x, y, z
How to do this?
Thanks,
ABCDx=20,y=3,z=4;
I want to get the values of x, y, z
How to do this?
Thanks,
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
it is looking for any string of alphanumeric characters following an =
ASKER
Thank you
ASKER
my($x,$y,$z)=/=(\w*)/g;