Sv RegexMatch

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
< [[::Category:Functions|Category:Functions]]

A function added by the JIP NVSE Plugin.

Description

Returns whether the specified string_var matches the specified Regular Expression pattern.

Syntax

[help]
(match:0/1) sv_RegexMatch targetSeq:string_var regEx:formattedString formatVars(up to 20)

Example

let sTargetSeq := "Whatchamacallit"
let bMatch := sv_RegexMatch sTargetSeq "(What)(.*)"

In the above example, sTargetSeq does begin with the sequence "What", therefore bMatch equals 1.

Notes

See Also