Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
minimal matching in python3
import re
strings = '''
minimal_pattern = r"<hajimari>(.*?)<owari>"
greedy_pattern = r"<hajimari>(.*)<owari>"
minimal_match = re.findall(minimal_pattern, strings)
greedy_match = re.findall(greedy_pattern, strings)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment