Repetition Matching
Repetition matching allows multiple searches within
the regular expression. It also specifies the number
of times an element is repeated in a Regular Expression.
Symbol Description
* Matches zero or more occurrences of the given regular Expression. Equivalent to {0,}.
+ Matches one or more occurrences of the given regular Expression. Equivalent to {1,}.
? Matches zero or one occurrences of the given regular Expression. Equivalent to {0,1}.
{x} Matches exactly x number of occurrences of the given regular expression.
{x,} Match atleast x or more occurrences of the given regular expression.
{x,y} Matches x to y number of occurrences of the given regular expression.
No comments:
Post a Comment