Tim Chase writes:
> On 11/28/2010 05:58 PM, goldtech wrote:
> > I am looking for a list of special character in python regular
> > expressions that need to be escaped if you want their literal
> > meaning.
>
> Trust the re module to tell you:
>
> >>> import re
> >>> chars = [chr(i) for i in ran
On 11/28/2010 05:58 PM, goldtech wrote:
I am looking for a list of special character in python regular
expressions that need to be escaped if you want their literal meaning.
I searched and can not find the list. Any help appreciated.
Trust the re module to tell you:
>>> import re
>>> chars
goldtech writes:
> I am looking for a list of special character in python regular
> expressions that need to be escaped if you want their literal meaning.
You can avoid caring about that by using ‘re.escape’, which escapes any
characters in its input character that are not alphanumeric.
> I sea
I am looking for a list of special character in python regular
expressions that need to be escaped if you want their literal meaning.
I searched and can not find the list. Any help appreciated.
--
http://mail.python.org/mailman/listinfo/python-list