[pmwiki-users] Improving a certain recipe script
Patrick R. Michaud
pmichaud at pobox.com
Thu Mar 30 07:40:37 CST 2006
On Thu, Mar 30, 2006 at 11:33:38AM +0200, Dominique Faure wrote:
> > > Assuming you don't need to match newlines:
> > >
> > > preg_match("!^ .{$SomeNumber,}!", ...)
> > It doesn't like the comma inside the curlies.
>
> It seems that you hit the string variable parsing use of curlies.
> I would try:
>
> preg_match("!^ .{{$SomeNumber},}!", ...)
Dominique is likely correct, and I like the way he's written it
here. I would've done
preg_match("!^ .\{$SomeNumber,}!", ...)
but I think the double-curly form may be more reliable.
Pm
More information about the pmwiki-users
mailing list