Improving the assignment location regex.