# Regex matching "\text{Hom}(.+,.+)" does not work

Here's a screenshot showing everything:

As you can see my template_regex is:

\text\{Hom\}$$.+,.+$$


It's not matching either of the nodes shown in the lower right, but also shown in my front end (which I'm kind of showing off) here:

Those nodes exist in the Neo4j database, however, they're not being matched by this very basic regular expression.

def escape_regex_str(string):
string = string.replace('(', r'$$') string = string.replace(')', r'$$')

The top line of the above function solved the issue. Might be with t since escaping that is usually the tab character, so we need to double escape some of the backslashes. :)