Type Property (Deprecated)
Format new RegExp (pattern matching string, optional)
Commentary
The substring preceding the most recent match. No QC2 code sample.
Sample code - QC 3 JavaScript
function (__string output) main ()
{
var result = new Object();
var str = "The rain in Spain stays mainly in the plain";
var pattern = new RegExp("ain", "g");
pattern.test(str);
result.output = "Match found. index now at: " + RegExp.leftContext;
return result;
}