I have a string
$description = 'Front: 1 1/2" W x 1" H ... Back: 2 1/4" W x 1 1/4" H Standard Imprint Area is the front. Optional Imprint Area is the back. Imprint on Standard Location Unless Otherwise Specified on Order. For Printing on Both Positions, Add $40.00(G) Set Up Plus .25(G) Per Piece.'
I need to trim the string to one that has the sentence which contains the text "Optional Imprint" as the last sentence.
So, if the text contains "Optional Imprint", find the end of the sentence, and discard all characters after it's ending point, the period(.).
What I would need returned from the above example is:
$description = 'Front: 1 1/2" W x 1" H ... Back: 2 1/4" W x 1 1/4" H Standard Imprint Area is the front. Optional Imprint Area is the back.'