Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- htmlcontent = re.sub(r'((@)([w.-]+))', r"a href='/users/3'>1 /a>", htmlcontent)
- <a href='/users/user.name.'>@user.name. /a>
- <a href='/users/user.name'>@user.name /a> <-- without '.' after 'name'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement