In selenium I used the following XPATH to find all elements which have the word ok:
//button[(((@value='ok')) or ((@value='Ok')) or ((@value='OK')))]
What if I want to find all buttons which start with the word ok? As an example OK1 is a match.