title: regex to match a word and everything after it?
body: <p>I need to dump some http data as a string from the http packet which i have in string format am trying to use the regular expression below to match 'data:'and everything after it,Its not working . I am new to regex and python</p>
  
  <pre><code>&gt;&gt;&gt;import re
  &gt;&gt;&gt;pat=re.compile(r'(?:/bdata:/b)?\w$')
  &gt;&gt;&gt;string=" dnfhndkn data: ndknfdjoj pop"
  &gt;&gt;&gt;res=re.match(pat,string)
  &gt;&gt;&gt;print res
     None
  </code></pre>