[Plugins-writers] "match" function how to with REGEX.

From: Simon Prazak (infosecpw@private)
Date: Wed Feb 01 2006 - 08:32:13 PST


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.


_______________________________________________
Plugins-writers mailing list
Plugins-writers@private
http://mail.nessus.org/mailman/listinfo/plugins-writers



This archive was generated by hypermail 2.1.3 : Wed Feb 01 2006 - 08:39:29 PST