Re: [NASL2] Auto-conversion with + and -
Michel Arboi <[email protected]>
| Newsgroups | gmane.comp.security.nessus.devel |
|---|---|
| Organization | Compilo ergo sum |
| Message-ID | <[email protected]> |
Pavel Kankovsky <[email protected]> writes: > Ad 2. can be solved with eregmatch(). While trying to rewrite webmirror.nasl, I ran into a strange bug. I suspect that some REGEX librairies limit the size of the found substrings. Anyway, we probably need something like strstr() (it should return an index) or maybe a simple "str_remove" function that will do what the "-" operator does. > Can we declare them obsolete and avoid them in (new) scripts, please? :) OK. > This means "strings where baslashes are never interpreted" rather than > impure strings with magical backslashes. Note that the problem with "pure"/"impure" only exists with string() and display() strcat does the same job as string, but does not interpret its arguments.