Perl Regular Expression
HI All,
I have a small problem to separate two string from one line. Could you please help me how i can do this following string using regular expression or with other method by Perl Language.
i have following values in variable but before and after '->' some time can be other numbers and char.
$var1 = "00->254157474#;";
$var2 = "585758->;"
i need to put like:
$before1 = 00;
$after1 = "254157474#";
same for second line
$before2 = 585758;
$after2 = "";
I will be appreciate for your kind of help.
Thank You
Lateef
|