Since the re module doesn't support a Perl re character class like [\p{Ll}\d] what would be the best way to implement this in Python 3.x? Note that the union of islower and isdigit seems to be larger.
Edit: to clarify: I wrote a static microblog generator in both Python and Perl (see: https://github.com/john-bokma/tumblelog ) and I want both to have the same functionality. I am in the process of adding tags e.g. https://plurrrr.com/tags/2021/python.html gives an overview of all entries tagged "python". I want to limit tags to lowercase letters and/or numbers separated by spaces (which I replace with '-'). To support other languages I want to use [\p{Ll}\d] which works in Perl.
Edit 2: I am going to check out pcre for Python.