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")).