Ref text extractor