I have an array containing regular expressions.
The point is that I want to run a function if any input string matches with any of these expressions whiteout any loops.
example of expressions array:
$array = [
'^expression_(.*)',
'^expression2_(.*)',
'expression3',
];