SWC-453 Edited regex for reference syntax

Tested for consistent functionality with different orderings of parameters.