I want to be able to grab a section of a string, starting at X and 
ending at Y.

For example, I have a line of text that looks like:

$text = The amount of the house is one hundred thousand dollars, and I 
can not afford that price.

and with the start and ending search strings being:

$X = "amount of the house is"
$Y = ","

I want to search for "amount of the house is", and then grab all of the 
text that follows, until I see the ending text, which in this case is a 
comma ",".

So, the resulting $text2 would then be equal to "one hundred thousand 
dollars".

Any help will be greatly appreciated.

Thanks,

Tony

Reply via email to