Some of the professionals are looking for QTP blogs to get their queries solved.
Visit this link and I am sure you get your most of the answers.
enjoy
As you can see, match() function works correctly. Using match() function, you can check - whether RegExp pattern matches against a text or not.| # | Subject string | Patterns | Result of match() | Is correct result? |
| 1 | abcdef | b(c(.*))e | 1 | Yes |
| 2 | abcdef | b(z(.*))e | 0 | Yes |
| 3 | 2008 | \\d{2,5} | 1 | Yes |
| 4 | 2008 | \\d{5} | 0 | Yes |
| 5 | abc 1st of May 2008xyz | \\d.*\\d | 1 | Yes |
matchex() function returns a number of matched patterns/subpatterns and fill an array in with information about each matched substring.
Note: Pay attention that I use arr[1] to get info about substring.