regex - regular expression pattern operations

native_tags.contrib.regex.matches(pattern, text)
String comparison. True if string text matches regex pattern This is a comparison tag.
native_tags.contrib.regex.search(pattern, text)
Regex pattern search. Returns match if pattern is found in text This is a function tag.
native_tags.contrib.regex.substitute(search, replace, text)
Regex substitution function. Replaces regex search with replace in text This is a function tag.

Previous topic

rand - random number operations

Next topic

serializers - wrapper for django.core.serializers

This Page