Last Updated: February 25, 2016
·
629
· oncletom

Normalizing URLs in OpenRefine

Sometimes you have data like www.example.com or http://www.example.com.

Here is a GREL expression to prefix them with HTTP, using Edit cells > Transform…

if(isNonBlank(value), 'http://'+replace(value, /^https?:\/\//, ''), null)