Guest User

Untitled

a guest
Feb 17th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. import re
  2.  
  3. text = 'Text [WIKI_LINK: Example@Whatever] text [WIKI_LINK: Example@Whatever]'
  4.  
  5. p_wiki_link = re.compile(r'[WIKI_LINK:.*@(?P<WIKI_LINK>[^]]+)')
  6.  
  7. for f in re.finditer(p_wiki_link, text):
  8. print(f)
Add Comment
Please, Sign In to add comment