I did wind up doing an ex meth. Only about 5 lines and it works well. What really are the risks if it will only be maybe two or three guys who will actually be using RE in py scripts? If there were many developers then I might see the issue. But if you know who is doing stuff on your server, where is the risk? Thanks for the info. -Allen -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Dennis Allison Sent: Thursday, October 24, 2002 12:28 PM To: Schmidt, Allen J.; list_subscriber@neurobs.com Cc: zope@zope.org Subject: Re: [Zope] Finding a phone number in a python script Faced with similar problems, I enabled regular expression search in Python Scripts (see the README in the product for instructions). IMHO a risks/reward analysis for the re module easily justifies its inclusion. Andreas Tille wrote: Use an external method. Schmidt, Allen J. wrote:
I have a block of text that contains a phone number in the format of 888/123-4567 and I need to identify that sequence when it occurs and somehow extract it, and return it to Zope without the slash or the dash.
Without regex in Python scripts, is there any way to do this?
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )