Amend regex

Regex amended to allow for piped parameters