def _get_first_sentence(s):
 x = re.match(u'.*?\\S\\.\\s', s)
 if (x is not None):
  s = x.group(0)
 return s.replace(u'\n', u' ')

def _get_first_sentence ( s ) : x = re . match ( u'.*?\\S\\.\\s' , s ) if ( x is not None ) : s = x . group ( 0 ) return s . replace ( u'\n' , u' ' )
get the first sentence from a string and remove any carriage returns .