Very simple regexp: '^Take the (.*) bound train to (.*)\.$'
that stores [train]
in the first capture group and [stop]
in the second.
^ # Match the start of the string
Take the # Match the literal string
(.*) # Capture the [train]
bound train to # Match the literal string
(.*) # Capture the [stop]
\. # Match the fullstop
$ # Match the end of string