I'm using QGIS and i have an attribute field that contains several compacted info such as "aaa1-bbb2-ccc3"
and i want to extract those three different numbers into new fields .. so far i have managed to do a half decent job in using RIGHT
and LEFT
functions and using the "-" as a reference but those need more steps into cleaning the data and I'm still left with the middle portion un handled
what is the cleanest way to have the columns filled with those numbers.
The data isn't always the same but i can easily clean set it with a simple REPLACE
, the issue is when i have to extract the numbers themselves
for example i have one column that has data similar to this "aaa1-bbb2-ccc3"
and the desired output would be three different columns, the first having "1"
, second "2"
and the third "3"