in reply to Regular Expression problem when Extracting Start\ VALUE \End
That should get you what you want.sub getInfoFromSingleLineMultiLineFile { #args and file opening... while($line = <IFH>){ if($line =~ /\Q$stag\E(.*?)\Q$etag\E/){ push(@wanted_substrings,$1); } } return @wanted_substrings; }
|
|---|