Javascript Regular Expressions

Javascripts Free Scripting Tutorial will completely cover the capabilities of Javascript. Javascript is a scripting language that makes your website interactive. Here I cover Regular Expressions and Form validation.

Original source

11 responses to “Javascript Regular Expressions”

  1. I have a question, is it posible to match/parse a portion of the text from a bigger text using something like match all after (word1) and bofore (word 2), so basicaly select all text between those 2 words?

  2. Excellent Tutorial! I have to admit I didn't understand much of RegEx until I saw your tutorials. In the minute 6:16 you have a wrong expression for getting the number. It should be like this ^([0-9]( |-)?)?(?[0-9]{3})?|[0-9]{3}( |-)?([0-9]{3}( |-)?[0-9]{4}|[a-zA-Z0-9]{7})$
    I have tried because I was curious.

  3. at 6:00 third bullet point should be corrected. Instead of saying . . .
    " if it does start with one of those letters, is the letter that proceeds it one of the letters contained in the brackets[]"

    it should say "follows" instead of "proceeds". the letters in the brackets are following the starting letter. it looks for a letter in the brackets proceeded by the starting letter, or more clearly stated, it looks for one of the letters in brackets that follows the starting letter.

Leave a Reply