$iflonger(a,b,x,y) if string a is longer than number b, x is returned, otherwise y.
the correct syntax would be $iflonger(ABC,5,Yes,no)
The second parameter must be a number - a string evaluates to 0 - and "A" is longer than zero.
Coming back to the regular expression:
To debug your expression in a systematic way I first tried the regular expression on its own - and at least in the demonstrated tests that did not produce a valid result.
You could guide me an tell me where my approach is not appropriate - that is why I documented it with screenshots.
@ohrenkino , ok, You're right concerning the $iflonger - I didn't read the "number" carefully and interpreted it (to me) equal to "string".
I suggest we discus the issue on this example further on on the "regular" forum and not in the bugs section - there we maybe / hopefully could post the result.