Проверьте, есть ли слово в конце строкового перерыва

Just appreciate next solution example for your code implementation:
S=finding
if[[ "$S" == *ing ]]; then ...//some code
More generally:
if[[ "string_to_check" == regex_patten ]]; then ...//some code
Armandres