> I use the following plumbing rule to "emulate" wiki like functions in 
> acme:
> 
> type is text
> data matches '([A-Z]+[a-z]+[A-Z]+[a-z]+)*$'
> data set wiki/$0.txt
> plumb to edit
> 
> Most of the time it works but if I use a LongWikiWord it opens
> WikiWord.txt instead of LongWikiWord.txt. It depends on where I click
> on the word. If I click on Long nothing happens and if I click on Wiki
> it opens WikiWord.
> 
> Is this a problem of the rule or a "feature"? I use acme  from Plan 9 
> ports.

i don't think your rule matches LongWikiWord because the rule
will only match words with an even number of studly caps.

assuming that you want >= 2 studly caps, i think the rule
you'd rather is

data matches '[A-Z]+[a-z]+([A-Z]+[a-z]+)+'

- erik

Reply via email to