Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> import re
- >>> searchstr = re.compile(r'one|two|three|four|five|six|seven|eight|nine')
- >>> mystring = "onetwonej"
- >>> re.findall(searchstr, mystring)
- ['one', 'two']
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement