Hi all,
I am trying to convert a perl program into java and I got stuck in the
regular expression part. It seems like java.util.regex couldn't help
much. I checked with Apache regexp and didn't get the right way to do
it either. Therefore, I am writing to see if someone could throw a
light on how to do a translation on the statement below.
if ($xml =~ m/^.*?<Transaction.*?instanceId="(.*?)".*?receiver=" (.*?)".*?sender="(.*?)".*?transactionId="(.*?)".*?/s)
{
return ($1, $4, $3, $2);
Your help is greatly appreciated.
Thanks,
Ye