[pmwiki-users] Conditional extensions
Patrick R. Michaud
pmichaud at pobox.com
Thu Apr 21 13:07:56 CDT 2005
OOPS! Syntax errors in my message...
On Thu, Apr 21, 2005 at 01:01:12PM -0500, Patrick R. Michaud wrote:
> The "?:" keeps the inner parens from being treated as a capture.
> Alternately, if you don't care about the \s*, you could probably do
>
> $delims = '/\\s*(?:and|or|xor|&&|\\|\\||[!()])\\s*/i';
This should be
$delims = '/\\s*(and|or|xor|&&|\\|\\||[!()])\\s*/i';
> [...]
> so I think we have to actually delimit on required spaces and the
> ends of the string:
>
> $delims = '/(?:^|\\s+)(?:and|or|xor|&&|\\|\\||[!()])(?:\\s+|$)/i';
And this should be
$delims = '/(?:^|\\s+)(and|or|xor|&&|\\|\\||[!()])(?:\\s+|$)/i';
Pm
More information about the pmwiki-users
mailing list