I think ur requirement is extract upto the makefile
if u wish u can modify ur regexp to as
inputs: ********* #$str='make -r -f ..\../tools/cell/makefile cell.lib'; $str='make -r -f ..\../system-build/ali/text/makefile cell.lib'; regexp: ********** $str=~/(.*)\s(\.\.\\(.*)\/makefile)/si ; print $2; or $str=~/(.*)\s(.*\/makefile)/si ; print $2; outputs: **************** ..\../tools/cell/makefile ..\../system-build/ali/text/makefile
Regards
Senthil Kumar.k
In reply to Re: using regular expression to extract subset from a line
by perlsen
in thread using regular expression to extract subset from a line
by ramthen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |