cql-engine icon indicating copy to clipboard operation
cql-engine copied to clipboard

Matches behavior

Open brynrhodes opened this issue 6 years ago • 3 comments

The following expression returns false:

define MatchesFalse: Matches('1,2three', '\w+')

Why?

brynrhodes avatar Mar 26 '19 17:03 brynrhodes

This is a Java thing. '\' is a special character in Java land and must be escaped. Try: define MatchesFalse: Matches('1,2three', '\\w+')

c-schuler avatar Apr 04 '19 17:04 c-schuler

@brynrhodes : was my explanation satisfactory or is there some further action required to resolve this issue?

c-schuler avatar Jul 12 '19 03:07 c-schuler

Still doesn't match, even though online regex matching testers indicate it should:

define MatchesTest: Matches('1,2three', '\w+')

brynrhodes avatar May 10 '22 20:05 brynrhodes