Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import re
- text = 'Text [WIKI_LINK: Example@Whatever] text [WIKI_LINK: Example@Whatever]'
- p_wiki_link = re.compile(r'[WIKI_LINK:.*@(?P<WIKI_LINK>[^]]+)')
- for f in re.finditer(p_wiki_link, text):
- print(f)
Add Comment
Please, Sign In to add comment