| Summary: | matchesPattern and isLike fail for escaped wildcard pattern | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Kathy Carroll <carrollk> |
| Component: | EDT | Assignee: | Project Inbox <edt.javagen-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | jeffdouglas |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
fixed Verified Closing this defect. |
program matchDriver type BasicProgram {} function main() s1, pattern String; actual boolean; s1 = "ab*def"; pattern = "ab\\*def"; actual = s1.matchesPattern(pattern); dump(s1,pattern, actual); s1 = "ab%def"; pattern = "ab\\%def"; actual = s1.isLike(pattern); dump(s1,pattern, actual); end function dump(source string, pattern string, result boolean) if (result) syslib.writestdout("Found " + pattern + " in " + source); else syslib.writestdout("Not Found " + pattern + " in " + source); end end end