[pyicu-dev] Proper regular expressions for Python
vajda at osafoundation.org
Fri Sep 19 10:10:20 PDT 2008
On Fri, 19 Sep 2008, F Wolff wrote:
> I'm new on the list, but in the archives and code I don't see any
> mention of support for ICU regular expressions. Since the Python re
> module seems quite limited, I was interested in what PyICU can offer. It
> seems that the regular expression support from ICU is not currently
> exposed. Is this the case? Is this on anybody's radar? Any pointers to
> start the interface?
That's correct. The RegexMatcher and RegexPattern classes would have to be
For an example on how to do so, take a look at PyICU's collator.cpp , the
code that wraps the ICU collator class hierarchy.
Wrapping the re support is mostly a matter of typing it in by following the
patterns in collator.cpp.
More information about the pyicu-dev