i have a simple script i am trying to create. but its very repetitive and i want to be able to select and remove some text starting at a certain point in the string.

for example if i have a string like this:

$foo = "whats your favorite color: a)red b)blue c)green";
$questions= "whats your favorite color:";
$answers= "a)red b)blue c)green";


as you can see from my $foo string, i want to be able to break it up into two separate string one to be the $question and another to be the $answers

how can i do this?