Sv RegexSearch

From the Fallout3 GECK Wiki
Revision as of 08:22, 8 June 2016 by imported>Jazzisparis (Created page with "{{Function |origin = JIP |summary = Returns an '''array_var''' containing all matches in the specified '''string_var''' to the specified [http://en.wikipedia.org/wiki/Regula...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
< [[::Category:Functions|Category:Functions]]

A function added by the JIP NVSE Plugin.

Description

Returns an array_var containing all matches in the specified string_var to the specified Regular Expression pattern.

Syntax

[help]
(matches:array_var) sv_RegexSearch targetSeq:string_var regEx:formattedString formatVars(up to 20)

Example

let sTargetSeq := "This subject has a submarine as a subsequence"
let aMatches := sv_RegexSearch sTargetSeq "\b(sub)([^ ]*)"

In the above example, aMatches will contain every whole word in sTargetSeq that begins with the sequence "sub" ("subject", "submarine" and "subsequence").

Notes

See Also