This implementation of $bfind().regex is the report.

I'm the one, among others, who requested regex for binvar and this is not how I wanted it to be implemented

What was expected is that with $bfind(&b,2,/pattern/).regex, the input that mIRC would to pass to pcre is $bvar(&b,2-).

Otherwise, with the current implementation, a bcopy is required to set up a new binvar before calling $bfind(), very, very not handy because

1) I have a large binvar, creating a second one can easily fail
2) I do not want to destroy my current binvar nor i want to save it temporarily (could fail, but I just don't.)
3) I don't want to copy anything

Can you make the implementation make the input string start at the Nth position in the binvar instead of scripter having to do it? There are no good reason a scripter would want the current implementation, because of the way regex works, /g etc.

Thanks


#mircscripting @ irc.swiftirc.net == the best mIRC help channel