topical media & game development

talk show tell print

basic-javascript-appendix-8-ch08-q2.htm / htm

  var myString = "a dog walked in off a street and ordered a finest beer"
  var myRegExp = /\ba\b/gi
  myString = myString.replace(myRegExp,"the");

(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.