common_prefix

glue.utils.misc.common_prefix(strings, exclude_punctuation=True)[source]

Given a list of strings, find the longest prefix common to all of them