regex into str
Peter Kleiweg
in.aqua.scribis at nl.invalid
Sat Aug 28 20:44:37 EDT 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:
A(0)
A(1)
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)
info: http://www.let.rug.nl/~kleiweg/ls.html
The Halloween Documents: http://www.opensource.org/halloween/
More information about the Python-list
mailing list