Useful for using in regular expressions:
Python detects all escape characters that can be used by regex and add slash before them
http://docs.python.org/2/library/re.html#re.escape
import re
re.escape( str )
Python detects all escape characters that can be used by regex and add slash before them
http://docs.python.org/2/library/re.html#re.escape
No comments:
Post a Comment