An introduction to regular expressions in JavaScript