C
Chip
Hi and thanks for your help.
I'm trying to parse the following :
Customer[Smith,John]Type[New]Source[Phone]Phone[5551212]
Since the brackets are metacharacters in perl I thought I
could just escape them with the following:
if (/Customer\[(.+),(.+)\]/) { # parse out values
$last = $1;
$first = $2;
}
But this does not work. How should I escape the '[' and ']'
characters
Thanks
Chip
I'm trying to parse the following :
Customer[Smith,John]Type[New]Source[Phone]Phone[5551212]
Since the brackets are metacharacters in perl I thought I
could just escape them with the following:
if (/Customer\[(.+),(.+)\]/) { # parse out values
$last = $1;
$first = $2;
}
But this does not work. How should I escape the '[' and ']'
characters
Thanks
Chip