[Answer]-__iregex=searchterm not working in django

1👍

Escape them: c\+\+. Maybe escape them twice, if sth is evaluating one escaping: c\\+\\+.

If you want to do that programmatically, use re.escape():

import re

print re.escape('c++')

This will print

c\+\+
👤Alfe

Leave a comment