I have data in the following format
name | height | hex assigned
[alphanumeric and spaces] | [numeric] cm| [hex]:[hex]
20 char | 5 char | 1 char: 1 char
What I'm trying to do is, to match the regexp
${escaped}= Regexp Escape '[A-Za-z0-9_\s] | [0-9]+ cm| [0-9a-f]:[0-9a-f]'
Should Match Regexp ${text} ${escaped}
Although the text is correct, the test keep failing.
Would really appreciate if someone could point out what I did wrong.
|is a meaningful character in most regex syntaxes, so you might have to escape it.