I wanted start using =~ because "res =~ pat" is (IMHO) nicer to read than ereg(string:res, pattern:pat, multiline:TRUE) and potentially also more efficient than egrep (normally I'm just interested if it matches, i.e. I don't need the list of all matched lines). However, I want case- sensitive matches, which is the default for ereg and egrep but not for =~. Any way to change this or to introduce yet another operator? Grepping through *.nasl reveals that most usages are written with case- sensitive matching in mind, so it seems I'm not the only one who naively assumed that semantics (but then I _read_ the reference manual so I know better :-).
I also wonder why 'hi\nthere' =~ "^there" evals to false (though 'hi\nthere' =~ '(^|\n)there' works, so that's not too bad). --nk _______________________________________________ Nessus mailing list [EMAIL PROTECTED] http://mail.nessus.org/mailman/listinfo/nessus
