Verification of text with regexp special symbols in edit boxes [message #1004144] |
Tue, 22 January 2013 11:50  |
Eclipse User |
|
|
|
Hi,
Let's some text entered in edit box has a special symbols like '{', '}', '[', ']' etc.
If I try to verify is the text was entered correctly using 'ub_ctx_checkText' keyword with identical text in 'text' option and 'matches' operator, verification fails.
The same result appears when I saves the text into any variable and use 'ub_app_checkStringValues' with 'matches' operator, because interpreter accepts braces as regular expression special symbols.
Using the 'equals' operator isn't a good idea because keyword is planned to use for text comparison with the templates with regular expressions.
The first idea was to store the edit box content into string variable and replace the '{', '}' symbols with '\{', '\}' but I cannot find how to make the replacement.
Has the Jubula any tools for replace the symbols in variables or to compare strings which contain braces or other special symbols?
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 1.05877 seconds