|Keep It Simple, Stupid|
extracting data from stringby prassi (Acolyte)
|on Jul 16, 2012 at 10:48 UTC||Need Help??|
prassi has asked for the
wisdom of the Perl Monks concerning the following question:
Hi Perl Monks,
I have a string which can take of 2 forms which I have mentioned below, which is part of the code
The string can be either of 2 forms and I need to split in the first case like
and in the second case like
but a single statement has to do it, I do not want 2 separate case for each one. Below is my perl code with different variant I have tried.
This gives me like
But both are not helping me in solving the issue can you please help in solving this or any other method avaliable.