Changing a string of text in QGIS

by Matt Sully   Last Updated September 13, 2017 14:22 PM

I have some text in a column in QGIS, I am using field calculator, I need to replace it with some other text.

This is what I have so far:

replace("url", 'Y:\Natural Environment Record\', 'http://www.exmoor-nationalpark.gov.uk/PAttachments//NER/')

It doesn't seem to like this, any ideas? This goes along side the answer to my last query getting spaces removed and to include them as %20 (Réf. Inserting %20 instead of a space as a string)



Answers 1


You can use the following:

replace("url", 'Y:\\Natural Environment Record\\', 'http://www.exmoor-nationalpark.gov.uk/PAttachments//NER/')
Martin Hügi
Martin Hügi
September 13, 2017 13:48 PM

Related Questions




CalculateField_management data value type error

Updated July 07, 2017 16:22 PM

Add value to entire column in attributes

Updated September 21, 2016 08:09 AM