[dokuwiki] Re: Search pattern challenge for plugin
- From: Chris Smith <chris@xxxxxxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Tue, 26 Dec 2006 18:08:28 +0000
Martin Tschofen wrote:
I'm trying to use the following syntax:
[reveal className width%|wikitext/]
e.g. [reveal wide 10%|[[link]]/]
I'm struggling with the regex pattern for this. As soon as I throw in the
wiki link, the following pattern doesn't work anymore. I'm setting
getSort
to 154. I also tried 1154 as well as 4.
\[reveal[^\r\n\|/\]]*+\|(?=[^\r\n\]/]*/\])
this is I think: find [reveal followed at least by something but not
returns
| / ] followed by | then look ahead for any characters except returns ] /
followed by /]
getType = formatting,
getAllowedTypes = substition, protected, disabled, formatting
Can I not do this because of the link syntax?
Any help would be greatly appreciated.
In your regex you don't allow "]" and then you are using [[link]] !
Remove the \] from your look ahead.
Chris
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
- Follow-Ups:
- [dokuwiki] Re: Search pattern challenge for plugin
- From: Martin Tschofen
- References:
- [dokuwiki] Search pattern challenge for plugin
- From: Martin Tschofen
Other related posts:
- » [dokuwiki] Search pattern challenge for plugin
- » [dokuwiki] Re: Search pattern challenge for plugin
- » [dokuwiki] Re: Search pattern challenge for plugin
- » [dokuwiki] Re: Search pattern challenge for plugin
- » [dokuwiki] Re: Search pattern challenge for plugin
I'm trying to use the following syntax: [reveal className width%|wikitext/] e.g. [reveal wide 10%|[[link]]/] I'm struggling with the regex pattern for this. As soon as I throw in thewiki link, the following pattern doesn't work anymore. I'm setting getSort
to 154. I also tried 1154 as well as 4. \[reveal[^\r\n\|/\]]*+\|(?=[^\r\n\]/]*/\])this is I think: find [reveal followed at least by something but not returns
| / ] followed by | then look ahead for any characters except returns ] / followed by /] getType = formatting, getAllowedTypes = substition, protected, disabled, formatting Can I not do this because of the link syntax? Any help would be greatly appreciated.
- [dokuwiki] Re: Search pattern challenge for plugin
- From: Martin Tschofen
- [dokuwiki] Search pattern challenge for plugin
- From: Martin Tschofen