get all states that match a possible regex state from the set of states
provided
public static getAllRegexMatchingStates ( |
||
$regex | a possible regex state. | |
$targets | all target State instances that we check the regex against. | |
return | an array of State instances from the $targets State instances that matched the (negated) regex, or the $regex State if it was not a regex State after all. |