I need to find abbreviations in many languages. Current regex :
import regex as re pattern = re.compile('(?:[\w]\.)+', re.UNICODE | re.MULTILINE | re.DOTALL | re.VERSION1) pattern.findall("USA usa")
I don't need usa as a result, I only need uppercase text. [AZ] will not work in any language other than English.
source share