1

I am working with Software Robotics in Kofax Kapow Design Studio. This tooling supports, well... it says it supports standard regex.

I have a hardcoded variable called: RegEx (value hard set: EUR) In the evaluate tool I have the following RegEx set:

RegEx == ("EUR"|"USD"|"CAD")

The tool returns with this error:

Error in line 1 character 16: Illegal character '|

Isnt this the most basic and/or evaluation based on a hardcoded variable? Why is the tool returning this error?

Bad: https://i.stack.imgur.com/347jU.png

Good: https://i.stack.imgur.com/o0dWk.png

Klaus Groenbaek
  • 4,820
  • 2
  • 15
  • 30
floppy
  • 333
  • 2
  • 14

2 Answers2

0

You need to use pattern matching instead. The following pattern should work fine and there is no need to use quotation marks for string matching in pattern matching option of Kofax Kapow

EUR|USD|CAD
Sohail Ahmed
  • 1,047
  • 1
  • 11
  • 27
0

Expressions don't handle regex natively.

You can use replacePattern("EUR","^(EUR|USD|CAD)$","foobar") == "foobar"

foobar can be any string, even an empty string.

karel
  • 5,489
  • 46
  • 45
  • 50
PolarFox
  • 3
  • 1