Pattern Match Function - get pattern tokens