get.sentence.with.pattern function

get.sentence.with.pattern