Just don't anchor your pattern:
/Test/
The above regex will check for the literal string "Test" being found somewhere within it.
Just don't anchor your pattern:
/Test/
The above regex will check for the literal string "Test" being found somewhere within it.