regular expressions with other string classes

Carlos Gaston Alvarez cgaston at
Wed Sep 19 09:20:28 CEST 2001

I think that I dont understand the question.
Why dont you implement a str() o toString() and use de re engine over the
resulting string?



----- Original Message -----
From: "Juan Valiño" <juan.vali at>
Newsgroups: comp.lang.python
To: <python-list at>
Sent: Wednesday, September 19, 2001 12:16 AM
Subject: regular expressions with other string classes

> It is possible to use the regular expression engine with other string-like
> structures?.
> For example, I can have my proper string class implemented as a list of
> python strings. Of course, my class would have an operator for direct
> to a character by index. (I think nothing more is necessary).
> I think that the new java sdk beta 1.4 includes such as regular expression
> engine.
> --

More information about the Python-list mailing list