I want to find the file name with fullpath from this string
"[exec] /snschome/sns/ccyp/mb_ccsns/bb/cbil5/v85_8/amdocs/iamcust/bil/cl/business/handlers/ClReportsHandler.java:233: cannot resolve symbol"
I want to extract
/snschome/sns/ccyp/mb_ccsns/bb/cbil5/v85_8/amdocs/iamcust/bil/cl/business/handlers/ClReportsHandler.java
and I am trying this in Perl
$_=$string_from_to_match my @extract_file=split(/.*(\/.*)\:.*/); print $extract_file[1],"\n";`
but I am getting this output:
/ClReportsHandler.java:233:
It is matching the last /
and the last :
. How can I change it to first /
and first :
?