Is there a good way of test if a string is a regex or normal string in PHP?
Ideally I want to write a function to run a string through, that returns true or false.>
Here is a good answer how to:
https://stackoverflow.com/a/12941133/2519073
if(@preg_match($yourPattern, null) === false){ //pattern is broken }else{ //pattern is real }