Match A Unicode Character

Based on: Regular Expressions Cookbook

Preliminaries

# Load regex package
import re

Create some text

# Create a variable containing a text string
text = 'Microsoft™.'

Apply regex

# Find any unicode character for a trademark
re.findall(r'\u2122', text)
['™']