use regex expression for authenticationparameters

Update AuthenticationParameters to use regex instead doing split in the code
Issue #166