
Meta Information User’s Manual
130
Notes:
Some more examples of regular expressions:
"i{5}" only "iiiii" correct
"i{2,}" only "ii", "iii", "iiii", ...
"i{,2}" only "" "i" and "ii"
"^qwerty" "qwerty" correct but not "aqwerty"
"qwerty$" "qwerty" correct but not "qwertyu"
• infix notation:
Structure notation where the operator is located between the operands, e.g. (A+B).
• postfix notation:
Structure notation where the operator follows the operands, e.g. (A,B)-.
• *The upper limit for repetitions is set to 48. (This limitation does not apply if the Edit-
able attribute in the XML DTD is set to NO)
Example Description
"0-9]{2}/0-9]{2}/0-9]{4}" Date DD/MM/YYYY
"a-zA-Z]+)|(a-zA-Z]+.a-zA-Z]+)
@a-zA-Z]+.a-z]{2,3"
E-mail address:
name@example.com
name@example.se
"(\(0-9]{3}\))?0-9]{3}
]{,1}0-9]{4}"
Telephone number
"(123) 123-1234"
"(123)1231234"
"(123) 123 1234"
"a-zA-Z ]+" Name:
"John Doe"
"John"
"0-9]{2} ?0-9]{3}" ZIP code
"12345"
"12 345"
"(1|2|3|4|5|6|7|8|9|10|11|12):
0-9]{,2}(:0-9]{0,2})
?(AM|am|Am|PM|pm|Pm)"
Time :
"1:05:59 AM"
"1:05:59 am"
"1:05:59 PM"
"1:05:59 pm"
"1:05 AM"
"^(http://|ftp://|https://|go-
pher://)?(a-zA-Z0-9]+.)*a-zA-Z
0-9]+(/(a-zA-Z0-9]|-|.)+)*"
URL : "http://www.ax-
is.com/prod/index.html"
"ftp://ftp.axis.com/pub/"
"www.axis.com"
"http://www2.lemonde.fr/arti-
cle/0,2320,seq-2039-53663-MI
A,00.html"
Kommentare zu diesen Handbüchern