How can I work with extracting only the matched pattern in text in PERL just as with 
UNIX sed below:

sed -n -e /\Starting_text.*/s/.*\(Starting_text.*Ending_text\).*/\1/p

example from UNIX piping file contents to the above sed:


blah blah Starting_text blah Ending_text blah blah

~~would return:

Starting_text blah Ending_text




_______________________________________________
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to