mIRC Home    About    Download    Register    News    Help

Print Thread
#181116 17/07/07 11:48 PM
Joined: Oct 2006
Posts: 166
B
b1ink Offline OP
Vogon poet
OP Offline
Vogon poet
B
Joined: Oct 2006
Posts: 166
aloha. I would like so suggest an addition for the /filter alias which is the following:

/filter alias with a flag to force /filter to deal with the matched text using identifiers. examples (let's say the flag is m):
My current window has the following:
//window @@ | tokenize 32 test tezt | aline @@ $*

wildcards:
/filter -m @@ @@ $replace(*z?,z,s)
That would replace the match (which is tezt) and replace the z into s
regexp:
/filter -gm @@ @@ $regsubex(tezt,/(?<=^)([^z]*+)z((?1))/,\1s\2)
same as above but supports $reg* identifiers.

The main idea of this addition is to make /filter more handy/one-way alias. hope you like it, thanx.

blink,


Kind Regards, blink
b1ink #181134 18/07/07 12:00 PM
Joined: Oct 2006
Posts: 166
B
b1ink Offline OP
Vogon poet
OP Offline
Vogon poet
B
Joined: Oct 2006
Posts: 166
the first parameter of $regsubex is suppouse to be .+


Kind Regards, blink

Link Copied to Clipboard