Mailing List Archive

"match" function how to with REGEX.
I need help with a match function. For some reason I am not getting the results. I try to match a word 'Symantec' contained in the variable 'mystring_var'. If match evaluates to true, I want to print a report and the string itself. Also, I am not an expert in REGEX, any check on my regex usage is appreciated.

if(match(string: mystring_var, pattern: 'Symantec.*'))
report = string (desc["english"],
"\n\nPlugin output :\n\n",
mystring_var);

Thanks for help.

Simon


---------------------------------
Do you Yahoo!?
With a free 1 GB, there's more in store with Yahoo! Mail.
Re: "match" function how to with REGEX. [ In reply to ]
On Wed Feb 01 2006 at 17:32, Simon Prazak wrote:

> I need help with a match function.
> Also, I am not an expert in REGEX,

match does not use regex, just "patterns".

> if(match(string: mystring_var, pattern: 'Symantec.*'))

pattern: 'Symantec*'
_______________________________________________
Plugins-writers mailing list
Plugins-writers@list.nessus.org
http://mail.nessus.org/mailman/listinfo/plugins-writers