On Dec 8, 1:22 am, r0g wrote:
> Torsten Mohr wrote:
> > Hi,
>
> > i'd like to test if an input string starts with a python expression
> > and also where that expression ends. An example:
>
> > a_func(3*7, '''abc''') +5 pls some
Torsten Mohr wrote:
> Hi,
>
> i'd like to test if an input string starts with a python expression
> and also where that expression ends. An example:
>
> a_func(3*7, '''abc''') +5 pls some more
>
> The first part until (inclusive) the
It sort of sounds like you want a templating system:
http://wiki.python.org/moin/Templating
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
i'd like to test if an input string starts with a python expression
and also where that expression ends. An example:
a_func(3*7, '''abc''') +5 pls some more
The first part until (inclusive) the 5 should be found as an expression
and the length of