Changed a code comment.
Changed confusing variable name.
Fix: was returning wrong preg match key.