Python: Strip everything but spaces and alphanumeric December 22, 2023 by Tarik re.sub(r'([^\s\w]|_)+', '', origList)