Hi, At the moment, the regexp filter is just a "search" filter. So what you want to have is a .match() with different "group" return values. right?
eg: ^/?/?/?([-A-Z0-9.]+:?/)?([-A-Z0-9/%._]*/)?([-A-Z0-9/%._]*$) applied to: c:/path/to/file/filename.txt will give us 1 match and 3 groups: Match 1: c:/path/to/file/filename.txt 0 28 Group 1: c:/ 0 3 Group 2: path/to/file/ 3 13 Group 3: filename.txt 16 12 At the moment filters can only check for Match 1: ... So stealing Mat's idea, we could use variables like: $(g1)$, $(g2)$ .. for Group 1: and Group 2: .... and so on $(m1)$ ... for Match 1: Those variables would need to be created by [match[regexp]] we could create a filter like: [match[regExpGoesHere]replace<variable>] where variable can be \define variable() filename: $(g3)$ just an idea. have fun! mario -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/tiddlywikidev. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/96a8938b-787a-46d0-8c9c-a17f21a69be5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
