non printable (moving away from Perl)

Ian Kelly ian.g.kelly at gmail.com
Thu Mar 10 22:52:46 EST 2016


On Mar 10, 2016 6:33 PM, "Mark Lawrence" <breamoreboy at yahoo.co.uk> wrote:
>
> On 11/03/2016 00:25, Ian Kelly wrote:
>>
>> On Mar 10, 2016 5:15 PM, "Fillmore" <fillmore_remove at 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?

No idea.



More information about the Python-list mailing list