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 -- https://mail.python.org/mailman/listinfo/python-list