Re: [pmwiki-users] php match q

2007-07-12 Thread Patrick R. Michaud
On Tue, Jul 10, 2007 at 07:07:09PM +0200, noskule wrote: hi list I would like to find out if a string occurs in a value and tried the match condition $showfields = FieldAFieldBFieldC (:if match '{$sowhfields}' FieldA:) ...formfield (:if match '{$sowhfields}' FieldB:) ...formfield

Re: [pmwiki-users] php match q

2007-07-12 Thread Christophe David
The ability to match on a regular expression, if I decide to keep it, will undoubtedly become (:if regex ... :) . Please decide so ;-) Christophe ___ pmwiki-users mailing list pmwiki-users@pmichaud.com

[pmwiki-users] php match q

2007-07-10 Thread noskule
hi list I would like to find out if a string occurs in a value and tried the match condition $showfields = FieldAFieldBFieldC (:if match '{$sowhfields}' FieldA:) ...formfield (:if match '{$sowhfields}' FieldB:) ...formfield is there a way how to do it? so far I tested with the match

Re: [pmwiki-users] php match q

2007-07-10 Thread noskule
noskule schrieb: hi list I would like to find out if a string occurs in a value and tried the match condition $showfields = FieldAFieldBFieldC (:if match '{$sowhfields}' FieldA:) ...formfield (:if match '{$sowhfields}' FieldB:) ...formfield arg, I did a misstake in the mail, I

Re: [pmwiki-users] php match q

2007-07-10 Thread noskule
I tried: (:expr expression string:) exapmles: (:expr 'FieldA' '{$showfields}':) something like this shouls work to: (:expr '^FieldA' '{$showfields}':) $Conditions['expr'] = 'CompareArgs($condparm) == 0'; function CompareArgs($arg) { $arg = ParseArgs($arg); return preg_match(@$arg[''][0],

Re: [pmwiki-users] php match q

2007-07-10 Thread noskule
noskule schrieb: I tried: (:expr expression string:) exapmles: (:expr 'FieldA' '{$showfields}':) something like this shouls work to: (:expr '^FieldA' '{$showfields}':) $Conditions['expr'] = 'CompareArgs($condparm) == 0'; function CompareArgs($arg) { $arg = ParseArgs($arg);