Regex amended to allow for piped parameters

Fairly self-explanatory.