Thanks for the links.
Can you (or anybody else) help me with more?
Let's say I have this:
//var %re | echo -a $regsub(eh.. some random text etc.. blahblah eh?,/(rand|text|eh)/gi,04\1,%re) -> %re
*** 4 -> eh.. some random text etc.. blahbleh?
Ok, it matches what I've specified.. then how can I match *everything but* what I specify, but keeping the whole text there (ie. not just dropping the subpattern)?
In this case, I'd want it to echo:
*** 4 -> eh.. some random text etc.. blahbleh?
I've read the whole PHP-based docs at the link you passed, but couldn't figure this out yet.
Now, if I wanted to assign a different colour for every found match of the above, I'd have to use $regsub() 3 times, is this right?
//var %re | echo -a *** $null( $regsub(eh.. some random text etc.. blahbleh?,/(rand)/gi,04\1,%re) $regsub(%re,/(text)/gi,03\1,%re) $regsub(%re,/(eh)/gi,06\1,%re) ) %re
*** eh.. some random text etc.. blahbleh?
Or is there a better way? Assigning different references to every item to use only one $regsub() wouldn't work for many reasons, as far as I know..
Thanks in advance.