Is it possible to split a string at the first occurence of a non-digit character using a python script in zope, or does this need an external method for security purposes? regards garry
--On 17. August 2008 16:29:38 +0100 Garry Saddington <garry@schoolteachers.co.uk> wrote:
Is it possible to split a string at the first occurence of a non-digit character using a python script in zope, or does this need an external method for security purposes?
You can implement a brute-force solution using an iteration using a PythonScript or you use a regular expression (requiring an external method, a browser view or any other form of "trusted code". -aj
+-------[ Garry Saddington ]---------------------- | Is it possible to split a string at the first occurence of a non-digit | character using a python script in zope, or does this need an external method | for security purposes? You can explicitly allow the re module if you want to split using a regex -- Andrew Milton akm@theinternet.com.au
participants (3)
-
Andreas Jung -
Andrew Milton -
Garry Saddington