##  Grab the amount like this:

$text = "The amount of the house is one hundred thousand dollars, and I cannot afford 
that price.";
$X = "amount of the house is";
$Y = ",";

$text =~ m,$X(.*?)$Y,;
print $1;

##  Prints:  one hundred thousand dollars

##  Good luck
##  Detlef

Reply via email to