in reply to Re: Regex Questionin thread Regex Question
The ? needs to be inside the capturing parenths like (.+?). In your example (.+)? you have code that effectively reads the least ammount of greedy matches and as a result fails to DWIM.