[pmwiki-users] Conditional extensions
    Patrick R. Michaud 
    pmichaud at pobox.com
       
    Fri Apr 22 11:00:16 CDT 2005
    
    
  
On Fri, Apr 22, 2005 at 05:44:11PM +0200, Dominique Faure wrote:
> I'd like to keep the full php semantics with mandatory spaces required
> only for non symbolic operators. Here's what I think as my final version:
> 
> $delims = '/(?:^|\\s*)(\\sand\\s|\\sx?or\\s|&&|\\|\\||[!()])(?:\\s*|$)/i';
I think it's better to require the spaces even for the symbolic operators.
In particular, without spaces it means that arguments to
(sub)conditions can never contain parentheses or an exclamation point.
Pm
    
    
More information about the pmwiki-users
mailing list