Basic HTML version of Foils prepared 16 June 98

Foil 56 RegExp Objects

From Overview of Advanced 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: regexp1 = new RegExp( "pattern" ); regexp2 = /pattern/;
3 The latter "compiles" the pattern: regexp2 == regexp1.compile("pattern")
4 The RegExp object has two other methods: exec( str ) and test( str )

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