I want to accept only those strings having the pattern \'wild.flower\', \'pink.flower\',...i.e any word preceding \'.flower\', but the word should not contain dot. For example,
You are looking for "^\w+\.flower$".
"^\w+\.flower$"