added regular expression argument passing and tests
added regular expression argument passing and tests