From f0f84ad3b00e40247c514de7e7935efd0bef7e2c Mon Sep 17 00:00:00 2001 From: kris Date: Wed, 18 Jun 2008 04:46:55 +0000 Subject: [PATCH] Fixing a pair of tags (function -> literal) and fixing an example call (match.lua -> match.regex). I also changed the variable used to avoid confusion (regex -> pattern). --- docs/scripting.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/scripting.xml b/docs/scripting.xml index 5c7ba239f..63469445d 100644 --- a/docs/scripting.xml +++ b/docs/scripting.xml @@ -1364,9 +1364,9 @@ if(s) code_to_be_done_on_match end This is actually a wrapper around NSE's PCRE library exec function (see ), thus giving script developers the possibility to use regular expressions for delimiting instead of Lua's string patterns. If you want to get - the data in chunks separated by regex (which has to be a valid + the data in chunks separated by pattern (which has to be a valid regular expression), you would write status, val = - sockobj:receive_buf(match.lua("regex")). + sockobj:receive_buf(match.regex("pattern")).