Compare text variables with whitespaces

wittgensteinwittgenstein Member Posts: 17
Hi,

is there something like a LIKE operator in C/AL?

I want to do this:

'ABCDEFG' LIKE 'ABCD*' => true
'ABCDEFG' LIKE 'AB?DEFG' => true
'Test' LIKE 'Test*ing' => false
'Testing' LIKE 'Test*ing' => true
'Teststring' LIKE 'Test*ing' => true
'Tasting' LIKE 'Test*ing' => false
...

Any ideas on how to do this?

Thanks in advance.

Best Answer

Answers

  • wittgensteinwittgenstein Member Posts: 17
    Hi Slawek,

    thanks. I will try it with RegEx as I dislike the 250 character limitation on the other solution.
Sign In or Register to comment.