Best way to search a Suvstring inside a String

Certified Associate Developer

I have a string something like "***-***" I just want to check if the string contains "-"?
What is the best way to achieve that?

  Discussion posts and replies are publicly visible