Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Function matches from String Class

Hi there,

I'm using the String Class like that :

boolean b1 = value1.matches(filterArticle);

boolean b2 = value2.matches(filterColor);

for filtering table and the probleme is when i debug :

it's always false !! ... why ??

(like value1 = jacket and filterArticle = e : b1 = false)

I don't understand ...

Regards,

Frantz

replied

Hi Frantz,

try using the placeholder char in your expression:

Instead of "jack" use "jack.*". This should match the string "jacket".

regards

Sebastian

Message was edited by: Sebastian Voss

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question