Basic HTML version of Foils prepared 3 March 99

Foil 74 Static Properties of RegExp Object II

From Overview of JavaScript I -- Basic Web Scripting Language CPS616 Technologies of the Information Age -- Spring Semester 99. by Geoffrey C. Fox (Tom Scavo)


RegExp.multiline if true, search through newlines
RegExp.$` or RegExp.leftContext is part of searched string before matched part
RegExp.$& or RegExp.lastMatch is part of searched string that is matched to by regular expression
RegExp.$' or RegExp.rightContext is part of searched string after matched part
So String searched is RegExp.leftContext + RegExp.lastMatch + RegExp.rightContext
RegExp.lastParen The last parenthesized substring match, if any
RegExp.$1,$2 .. $9 are the first through ninth parenthesized expressions matched



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Wed Mar 3 1999