Added checks for duplicate paramater names.
Changed regex representation to traditional javascript style /.*/