Norbert Kiesel <[EMAIL PROTECTED]> writes: > 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?
Not yet. I think (but you are allowed to disagree :) that the better way to implement it would be to add a new regex type in NASL -- just like in Perl. However, we would have a backward compatibility problem, as the new scripts could not be parsed by old interpretors :-\ > Grepping through *.nasl reveals that most usages are written with case- > sensitive matching in mind Upper/lowercase mix in the RE might come from copy/paste. > I also wonder why 'hi\nthere' =~ "^there" evals to false (though > 'hi\nthere' =~ '(^|\n)there' works, so that's not too bad). Because =~ implements "multiline" regex. _______________________________________________ Nessus mailing list [EMAIL PROTECTED] http://mail.nessus.org/mailman/listinfo/nessus
