Basic HTML version of Foils prepared 8 Feb 98

Foil 79 RegExp Object

From Overview of Basic JavaScript -- Web Scripting Language CPS616 Technologies of the Information Age -- Spring Semester 98. by Tom Scavo,Geoffrey C. Fox


1 An RegExp object (new in JavaScript 1.2) corresponds to a regular expression
2 There are two syntaxes: regexp = new RegExp( "pattern" ); regexp = /pattern/;
3 The latter "compiles" the pattern and is more efficient
4 The RegExp object has three methods: compile(), exec(), and test()

in Table To:


© 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 Sun Nov 29 1998