Amend regex

Regex amended to allow for piped parameters
Merge pull request #1 from Ironholds/master

Regex amended to allow for piped parameters