I am using fitnesse, and i need to match 2 possible outputs.
My script table looks like this:
|script|MyClass|
|check|doSomething|value|=~/Result1|Result2/|
My problem is that the pipe | in the regex is read as a column separator instead. Is there a way to escape the pipe character?
A quick googling brought this escape sequence up:
!-|-!
For increased readability you should probably use it like this:
|check|doSomething|value|!-=~/Result1|Result2/-!|