This discussion is archived
10 Replies Latest reply: Oct 31, 2006 5:11 PM by 807598 RSS

How to find if a particular string ends with 0?

807598 Newbie
Currently Being Moderated
I am not able to use endsWith
My string has the name boardString and I want to check if it has 0 at its end
please tell me the correct syntax

I tried
if(!boardInput.endsWith(boardString '0'))

or should use regular expressions $... please tell