check logout url against a regex pattern