refining app regex