[pmwiki-devel] Quick preg_replace question...
Hans
design5 at softflow.co.uk
Fri Apr 27 07:33:57 CDT 2007
Friday, April 27, 2007, 1:23:40 PM, Patrick wrote:
> Actually, it's aiming for any line that begins with zero or two
> spaces, a square bracket, a t/r/c, and a close square bracket.
> Thus it wouldn't match the lines you gave because they don't
> contain a leading square bracket.
Oh yes! I missed the square brackets!
> One can also use question marks here:
>
> / ? ?/ # match 0, 1, or 2 spaces
Sweet.
Thank you for the advise about \s etc.
There is a lot for me to be learned with regex, and detailed
explanations are very valuable lessons!
Hans
More information about the pmwiki-devel
mailing list