On Nov 25, 10:36 am, M_H <[EMAIL PROTECTED]> wrote: > Hey, > > I need the position of the last char > > > Let's say I have a string > mystr = <mimetype="text/html"><content><![CDATA[ > > I need the posistion of the "> (second sign) - so I can cut away the > first part. > > The problem is that it can be like "> but also like " > or " > > > But it is def the quotes and the closing brakets. > > How do I get the position of the > ???? > > Hope you can help, > Bacco
why not just spilt >>> mystr = '<mimetype="text/html"><content><![CDATA[' >>> mystr.split('>', 2)[-1] '<![CDATA[' you don't want to use an re for something like this -- http://mail.python.org/mailman/listinfo/python-list