Changes between Version 14 and Version 15 of RegexIncludeMacro


Ignore:
Timestamp:
Oct 9, 2006 12:53:11 PM (8 years ago)
Author:
anonymous
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • RegexIncludeMacro

    v14 v15  
    9090Download the zipped source from [download:regexincludemacro here]. 
    9191 
     92 
    9293== Source == 
    9394 
     
    108109}}} 
    109110In my case, it would include a page from the wiki called "!StartPage_dfaerch". (and always lowercasing the username). And for anonymous users, it would include "!StartPage_anonymous", unless "no_anon" is defined as well. 
     111 
     112[[BR]] 
     113This example shows the 2 graphs from kernel.org's frontpage. It uses regular-expression '''search''' to capture the image-urls. Also, it uses '''match_seperator''' to seperate the to found image-urls by ![[BR]] to put them on seperate lines. 
     114{{{ 
     115[[RegexInclude(http://kernel.org,wiki,match_seperator=" [[BR]]",'(http://www\d+.kernel.org/bw-zeus\d+\.png)')]] 
     116}}} 
    110117 
    111118[[BR]] 
     
    134141I hope these two combinations are so unlikely, that the limitation wont cause any trouble. 
    135142 
    136  * url's cannot contain comma. If you need comma, you can URLEncode it. (as such: /file?arg=1,2 = /file?arg=1%2c2) 
    137  
     143 * url's cannot contain comma. If you need comma, you can URLEncode it. (as such: /file?arg=1,2 becomes /file?arg=1%2c2) 
     144 * match_seperator must be in quotes (") if you want to use commas. 
    138145 
    139146== Recent Changes ==