I have a file in the following format:
Data Data Data [Start] Data I want [End] Data
I\'d like to grab the Data I want
from between the
With Perl you can surround the data you want with ()'s and pull it out later, perhaps other languages have a similar feature.
if ($s_output =~ /(data data data data START(data data data)END (data data)/)
{
$dataAllOfIt = $1; # 1 full string
$dataInMiddle = $2; # 2 Middle Data
$dataAtEnd = $3; # 3 End Data
}