Shoutbox

Filter Wildcards - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: WLM Plus! Help (/forumdisplay.php?fid=12)
+----- Thread: Filter Wildcards (/showthread.php?tid=44343)

Filter Wildcards by imsaborda on 05-08-2005 at 04:59 AM

Is there a way in the filters that you can assign the wildcard onto the replacement text? Like in perl you'd do \\1, \\2, etc...

ex:
text to replace = "run*"
replacement text = "walk\\1"

so say the message is "the horse runs" itd be replaced with "the horse walks", "the horse is running" is "the horse is walking", "the horse will run" is "the horse will walk", etc... off of the one filter entry in the example


RE: Filter Wildcards by -dt- on 05-08-2005 at 06:20 AM

why dont we just ask for full on regular expressions?  then we could create more powerfull search and replacing things


RE: Filter Wildcards by WDZ on 05-08-2005 at 06:38 AM

quote:
Originally posted by -dt-
why dont we just ask for full on regular expressions?
That would be cool... :drool:

* WDZ likes regexps :p

It would probably be hard to code/implement though, but maybe there's some already-written code available that Patchou could use... :-/