
Laurent_R
Veteran
/ Moderator
Nov 5, 2012, 10:39 AM
Post #2 of 2
(3713 views)
|
Re: [ianilkumar] Extracting data between arrows
[In reply to]
|
Can't Post
|
|
Does the data between the arrows always have the same length? If yes, use the substr function. Else, you may probably want to use a regex, something like this:
my $extracted_line = $1 if $total_line =~ /^-{3}>(.*)<-{3}$/; Or you could also use the index function to find the position of the "<" near the end and then use the substr function to extract the interesting data.
|