#-*-coding:utf-8-*-
import re
name="duoceshi"
p= re.compile('\bduoceshi\b')
f = p.search(name)
if f:
   print f.group()
########################################3
p= re.compile(R'\bduoceshi\b')  #这里要加上原始字符r/R,原因是:python默认会把\b解码给ascii码8(退格符)
f = p.search(name)
if f:
   print f.group()