Regular expression on a String ?

Author Message

Fabien Scantamburlo

Wednesday 16 April 2008 6:18:14 am

Hi,

I need to apply a regular expression on a String. I can't find a way neither the documentation section, neither the forum section.

Is there a way with template operators (without create my own module/extension) ?

Thanks,

Fab.

Kristof Coomans

Wednesday 16 April 2008 6:54:54 am

Hi Fabien

I only know about this existing one: http://ez.no/developer/contribs/template_plugins/reg_ex_replace
Not sure if you want to replace part of the string or just want to match.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Fabien Scantamburlo

Thursday 17 April 2008 1:37:30 am

I need to apply several actions as :
- match keywords (from datatype keywords) into an XML block
- count first occurrence like [i]preg_match[/i] does.

If templates operators are not usefull enough to do these, how can i add my own operators ?

Thanks,

Fab.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.