An introduction to regular expressions in JavaScript for beginners