Correction to regex lookups