Friday, 7 November 2014

XML Meta characters


Meta Character
Description
Example
.
Matches any character
a.b matches abb, a1b, a@b etc.,
?
Zero or one occurrence
a?b matches  b, ab
*
Zero or more occurrences
a*b matches b, ab, aab, aaab etc.,
+
One or more occurrences
a+b matches ab, aab, aaab etc.,
|
Or operator
ab|cd matches ab or cd.
()
grouping
A(b|c)d matches abd or acd.
[]
range
A[a-z]x matches abx, azx, acx etc.,
{n}
Exactly n times
a{5} matches aaaaa
{n,m}
Matches between n and m times
a{3-5} matches aaa, aaaa, aaaaa
{n, }
Matches n or more times
a{3, } matches aaa, aaaa, aaaaa etc.,

Prevoius                                                 Next                                                 Home

No comments:

Post a Comment