blob: 0e18a84cbfe4f45996828f8aaa5fc55bf823b6c7 [file] [log] [blame]
khfaraaz82@gmail.comc526fe92012-08-10 22:09:13 +00001/*
2 * Description : Test matches string function using regular expressions
3 * Expected Res : Success
4 * Date : May 21 2012
5 */
6
7write output to nc1:"rttest/string_matches06.adm";
8
9for $a in [matches("mnop","."),
10matches("abcdefABCDEF","/d"),
11matches("12345","\d"),
12matches("abcdefGHIJK","\D"),
13matches(" ","\s"),
14matches(" ","\S"),
15matches("Welcome to pattern matching!","[a-zA-Z_0-9]"),
16matches("!@#$%^&*()","[a-zA-Z_0-9]"),
17matches("!@#$%^&*()","[^\W]"),
18matches("!@#$%^&*","[^\w]"),
19matches("0xffff","[\p{XDigit}]"),
20matches("FFFFFFFF","[\p{XDigit}]"),
21matches("abcdefgh","[\p{javaLowerCase}]"),
22matches("ABCDEF","[\p{javaLowerCase}]"),
23matches(codepoint-to-string([0163]),"[\p{Sc}]")]
24return $a
25