[pmwiki-users] Re: Upgrade path - getting rid of WikiLinks?

Patrick R. Michaud pmichaud at pobox.com
Mon Aug 8 15:27:55 CDT 2005

On Sat, Aug 06, 2005 at 11:44:18PM +0200, chr at home.se wrote:
> On Sat, 6 Aug 2005, Patrick R. Michaud wrote:
> > On Sat, Aug 06, 2005 at 10:50:24AM -0400, Radu wrote:
> > > At 08:23 AM 8/6/2005, chr at home.se wrote:
> > > >I've decided to stop using WikiLinks while upgrading to pmwiki2. The
> > > >problem is of course that the original site has lots of WikiLinks based on
> > > >camel case... Is there a way to automatically convert them in [[links]]?
> > > 
> > > replace on save? But I'm not sure we can use regexp inside 
> > > $ROSPatterns keys and values :(
> > 
> > Hint:  Any PmWiki variable with the name "Pattern" in it 
> > understands and expects regexp patterns.  :-)
> So what is the idea here? That $ROSPattern should be used to automatically
> detect WikiLinks and replace them with [[WikiLinks]] when the page is
> saved?

Sorry, my hint was simply to state that a variable named
$ROSPatterns will be able to use regexps.  It's not that this
solves the problem you're wanting to solve (it doesn't).

At the moment I don't have a good answer for automatically 
converting WikiWords into [[WikiWords]].  On pmwiki.org I've just
been converting them manually as I find them, and encouraging
others to do the same.


More information about the pmwiki-users mailing list