I am building a forum application in Django and I want to make sure that users dont enter certain characters in their forum posts. I need an efficient way to scan their whol
If efficiency is a major concern I would re.compile() the re string, since you're going to use the same regex many times.