.. currentmodule:: trrex .. _usage: ============== Advanced usage ============== By default trrex will use word boundaries :code:`"(\\b)"` to delimit keywords, this could be problematic if the words contain punctuation symbols. You can do the following for those cases: .. ipython:: python import trrex as tx import re emoticons = [":)", ":D", ":("] pattern = tx.make(emoticons, prefix=r"(?`_ for each character of the string in order to work properly with trrex.