topical media & game development
basic-javascript-appendix-8-ch08-q2.htm / htm
<HTML>
<BODY>
<SCRIPT>
var myString = "a dog walked in off a street and ordered a finest beer"
var myRegExp = /\ba\b/gi
myString = myString.replace(myRegExp,"the");
alert(myString)
</SCRIPT>
</BODY>
</HTML>
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.