I am trying to match a sentence that starts with "hello" and ends with "bye". For example, "hello something bye" should result in a match.
I tried using the regular expression ^hello|[a-z]|bye$
, but it detects everything. I have also tried googling, but I couldn't find a solution for this exact case.