Extension talk:RegexParserFunctions

Could you put more samples of use here, Please. For example, what are the different using between match and replacement. --Roc michael 12:17, 15 June 2007 (UTC)


 * Hi Roc! More detailed examples and usage instructions are availble on the RegexParserFunctions Project HomePage. --Jimbojw 04:42, 16 June 2007 (UTC)


 * Thank for your help, Jimbojw.--Roc michael 07:10, 16 June 2007 (UTC)

I really love this extension!

I also have an improvement idea:

replacing like  would be much more usefull if it would be possible to do something with the replace string $1. For example. Certainly $1 as variable for such operations wouldn't be a good variable name because it also could be possible that in the match string is a $1. In this case we would get a problem. Perhaps you could make this work as variable for wikis with variable extension like: This would offer much new possiblities like run another regex over the matches. --Danwe 20:25, 22 February 2009 (UTC)

Helpful examples
I think it could be helpful if everybody who wrote a regex which is generally helpful adds it here. I Wrote one which dissolves all links inside a given string:

 

Example: " text text linktext and link " is going to be "text text linktext and link" --Danwe 22:15, 22 February 2009 (UTC)

Remove Category links
%\[\[Category?(?(?=[^\[\]\|]*\|)[^\[\]\|]*\||)([^\[\]]*)\]\]\n%

this removes cat links like. But it doesn't work if the category name includes : like in. How would I do that? Big thanks! --Subfader 20:32, 5 July 2009 (UTC)
 * /\[\[Category:.*\]\]\s*/s --Subfader 00:09, 8 July 2009 (UTC)

Doesn't work in 1.16alpha
Maybe you can have a look now already before everyone using this extension will come here ;) --Subfader 00:09, 8 July 2009 (UTC)