Hi: I want to extract data between the first parenthesis and the last in the below variable. I have tried a number of combinations. I either miss the entire string or get data only until the first carriage return. Can someone help me to extract the data including the carriage return between the parenthesis? $OrigString = "REQUEST(SERVICE,1DJGHKDFJGHDFJGHKDFJH\nDFJHGDFJHGJDFHGJKDFHG\nHGJDFHGJKDFHGJKDFHGJKDFH);"; $OrigString =~ m/REQUEST\((.*)\);/; print "$1\n";
TIA Ravi -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/