The next installment of the So You Think Your A Web Developer series will talk about Regular Expressions in Java Script. Many developers cringe at the site of Java Script, and even more run and hide with the mention of Regular Expressions. As a web developer, it is your responsibility to write sites that load fast, and often times string manipulation is the cause of bottlenecks on web sites. String manipulation is most efficient when Regular Expressions are used. If you are unfamiliar with Regular Expression syntax, check out SYTYAWD #3 about Regular Expression Syntax. Regular Expressions in Java Script
One you have the Regular Expression syntax down working with it inside of Java Script is a breeze.
Inside of Java Script Regular Expression can be created in two ways. As literals or by calling the constructor of the RegExp object. In most cases I prefer calling the constructor, because I find it makes the code more readable.
No comments yet, be the first one to post comment.