We can select string with some patterns.

Import library

import re

Special characters

References