[pmwiki-devel] Quick preg_replace question...
Hans
design5 at softflow.co.uk
Fri Apr 27 06:55:04 CDT 2007
Friday, April 27, 2007, 11:47:02 AM, The wrote:
> '/\\n([ ]{0-2})\[([trc]{1})(.*?)\]/e'
instead of ([ ]{0-2}) try (|\s|\s\s)
(=none or one or two spaces)
There is probably a more elegant way, but I am no regex wizard.
also ([trc]{1}) should be probably just ([trc])
=group with either t or r or c (it is one character anyway unless
followed by + (one or more) or * (none, one or more)
Hans
More information about the pmwiki-devel
mailing list