in reply to How do i get string between

The pattern requires a space before the question mark, but there is no space there in the string against which you are matching.