Match something through regexp or custom string, or validate it's true or false