(Bug 49916) Fixed bad regexp for matching <ref..>..</ref>

Change-Id: I6d805e5876752d61a3ef4d0872fce8f8a96a9f15