refactored regex definitions into method
travis secret token