JavaScript Regular Expressions
#1

JavaScript Regular Expressions

[attachment=18396]


Definitions

String - Any collection of 0 or more characters.
Example:
“This is a String”


SubString - A segment of a String
Example:
“is a”


Case Sensitivity - detection if a character is upper or lower case.


What is a Regular Expression

A regular expression is a pattern of characters.
We use regular expressions to search for matches on particular text.

How are regular expressions implemented in JavaScript??

There are two ways:
1) Using literal syntax.
var RegularExpression = /pattern/
2) When you need to dynamically construct the regular expression, by creating instances of the regular expression object, RegExp.
var RegularExpression = new RegExp("pattern");

Categories of pattern matching characters

Position matching
Character classes matching
Repetition matching
Alternation and grouping matching
Back reference matching





Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Popular Searches: expressions for wave spring, project scheduling javascript, student marksheet using javascript, students mark list preparation in javascript, mini project html with javascript, teaching kids with learning difficulties in the regular classroom winebrenner, molecular expressions,

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Forum Jump: