fixed regexp when resolving noweb references