Changing regular expression to fix bug #176