Hi, the Regex below is not working for the ‘an’ although it should according to https://www.freeformatter.com/java-regex-tester.html#ad-output Any proposals, why this is the case? Thx! if $currentObject/Title = 'Top Management' then empty else if isMatch($currentObject/Title,'^[A|a|E|e|I|i|O|o|U|u]') then 'an' else 'a'
asked
Tjark Radewaldt
1 answers
0
The regex should match the entire input. The current regex only matches the first character, that is why the substring will work. Furthermore, the pinelines (|) are unnecessary.