Possible Duplicate:
Useful Regular Expression Tutorial
Hello,
I recently started coding in javascript.
I came across “Regular Expressions” while I’m searching (goolgling) to validate forms (name, email ID’s, etc.)
Can someone help this newbie coder by explaining:
- What are regular expression?
- How are they useful in programming?
- Are they simple to understand?
- Where can I get some good reference to learn these?
Any help is much appreciated.
Thank you!
“A regular expression (regex or regexp for short) is a special text string for describing a search pattern. You can think of regular expressions as wildcards on steroids. You are probably familiar with wildcard notations such as *.txt to find all text files in a file manager. The regex equivalent is
.*\.txt$.“Very.
It depends. They can range from simple to understand to nearly unintelligible.
This is a very good place to start: http://www.regular-expressions.info/