I'm trying to extract text data from a string field containing text delimited by dots and placing it in new fields using the field calculator.
Im using this python function (Taken from How to extract text before a / in QGIS?):
from qgis.core import *
from qgis.gui import *
@qgsfunction(args='auto', group='Custom')
def func(value1, feature, parent):
return value1.split('.')[0]
This returns all text before the first dot. Now I'm wondering how to write the function for it to place each delimited text row in a separate field.
Before:
After: