[pmwiki-users] Category Markup
Patrick R. Michaud
pmichaud at pobox.com
Sat Dec 17 09:34:36 CST 2005
On Sat, Dec 17, 2005 at 01:17:58AM -0500, DaveG wrote:
> Patrick R. Michaud wrote:
> >
> > $ROSPatterns["/^Tags?:\\s*([\\w\\s,]+)/e"] = "TagsToCategories('$1')";
>
> However, your regex continues past the end of the line, and starts
> converting the first word on the next line. I'll work on that tomorrow :)
Oh yeah, \s matches newlines. Try this instead, so that we only
match spaces and not whitespace.
$ROSPatterns["/^Tags?: *([\\w, ]+)/e"] = "TagsToCategories('$1')";
Pm
More information about the pmwiki-users
mailing list