Reg Expression - Get position of >
clp at rebertia.com
Tue Nov 25 20:33:19 CET 2008
On Tue, Nov 25, 2008 at 8:36 AM, M_H <heyer.mario at googlemail.com> wrote:
> 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 > ????
Python 2.6 (r26:66714, Nov 18 2008, 21:48:52)
[GCC 4.0.1 (Apple Inc. build 5484)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> mystr = '<mimetype="text/html"><content><![CDATA['
Follow the path of the Iguana...
> Hope you can help,
More information about the Python-list