regex into str

Peter Kleiweg in.aqua.scribis at nl.invalid
Sun Aug 29 02:44:37 CEST 2004

I wrote:

> I want to use regular expressions with less typing. Like this:
>     A / 'b.(..)'     # test for regex 'b...' in A
>     A[0]             # get the last whole match
>     A[1]             # get the first group in the last match

I meant:


While A[0] and A[1] should work like normal string indexing.

Peter Kleiweg  L:NL,af,da,de,en,ia,nds,no,sv,(fr,it)  S:NL,de,en,(da,ia)

The Halloween Documents:

More information about the Python-list mailing list