On 11/03/2016 00:25, Ian Kelly wrote:
On Mar 10, 2016 5:15 PM, "Fillmore" <fillmore_rem...@hotmail.com> wrote:
Here's another handy Perl regex which I am not sure how to translate to
Python.
I use it to avoid processing lines that contain funny chars...
if ($string =~ /[^[:print:]]/) {next OUTER;}
Python's re module doesn't support POSIX character classes, but the regex
module on PyPI does.
https://pypi.python.org/pypi/regex
There are plenty of testers for the re module, but do you know if there
are any available for the above, as it's not the easiest thing to search
for?
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list