For example:
array = ['text_first', 'text_second', 'text_third']
Now trying to compare with 'text_first_file', 'text_first_2023' or 'text11_first'
Trying to use regex - but failing.
UseCase:
array includes 'text_first_file' => TRUE
array includes 'text_first_2023' => TRUE
array includes 'text_first-2023' => TRUE
array includes 'text11_first' => FALSE