Quote:
Originally Posted by jj
Hi there, have looked into the code for a moment. Try using the preg_match_all() function to get more than one hit for a regular expression. You will get a multi-dimensional array then with all found matches 
|
Sure - I'd thought about that. Then multiply count($matches) with the weighting for that rule.
I'm wondering if there are any cases where you wouldn't want to consider multiple occurences of the same pattern. (i.e. have the "all" test configurable).