PyDocs

Nav

Text Processing Services

Match.end

re

method of Match
  • Match.end([group])
Return index of the end of the substring matched by group.
1 Example
>>> email = "tony@tiremove_thisger.net"
>>> m = re.search("remove_this", email)
>>> email[:m.start()] + email[m.end():]
'tony@tiger.net'
from the Python docs
See Also
No see-alsos for re/Match.end
0 Notes
No notes for Match.end