Sunday 23 March 2014

Rules(BCD) for Validate Regular Expression



B- There are three types of brackets used in regular expression.
      Square Bracket    - Specify the character which needs to be matched
      Curly Bracket “{” - Specify how many character
       Para thesis          - Specify for Grouping

C -Carrot “^” the start of regular expression
D –Dollar “$” the end of the regular expression


Eg. ^[a-g]{3}$

Above example will allow to enter character between a to g with maximum three character.

No comments:

Post a Comment