Friday, April 27, 2007, 5:11:56 PM, The wrote:

> '/(\n?)\[([trc][0-9]{0,1}\\b)(.*?)\]/e'

'/(\n?)\[([trc][0-9]?\\b)(.*?)\]/e'

? means "previous character once or not", so
[0-9]? means "single digit or none".
Just a bit shorter than {0,1}
(and I know you like it short!) :)


Hans


_______________________________________________
pmwiki-devel mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-devel

Reply via email to