The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #7 (permalink)  
Old 07-02-2009
zilux zilux is offline
Registered User
  
 

Join Date: Apr 2009
Location: netherland
Posts: 2
try this


Code:
my $s = "something is good wanted (bla bla)";
if ( $s =~ /^.*\s(.*)\s\(/ ) {
    print "$1";
}


Last edited by Yogesh Sawant; 07-05-2009 at 11:18 AM.. Reason: added code tags