[GIS] Removing n first digits on a field attribute table using QGIS string functions

functionqgisstring

I'm looking for a QGIS function to remove the first n digits on a field attribute table using QGIS string function.
For exemple I have the following string in a QGIS attribute table:

742-004-SRV Superficie : 12780

My aim is to remove the first 12 characters. How to achieve this with QGIS?

Best Answer

You can use substr.

So:

substr(  "Field" , 13,  length( "Field"))

So this grabs everything from the 13th to the Nth character, with the Nth being the lenght of the field.