contextual regular expression for parsing short text