Originally Posted By: Loki12583
Don't use regex, use tokens.

if ($istok(%var1,$2,32)) { ...


Exactly, beautiful.