Improved references field using regular expressions.