improved regexes, added parameter for minimum sentence size