In QGIS, I'm trying to create a new variable with a short description of a string value of another variable. For example, in the table below, I would like to have:
NAMEABB = "US 1" when NAME = "US Route 1";
NAMEABB = "I-5" when NAME = "Interstate Route 5";
NAMEABB = "SR 539" when NAME = "State Route 539".
I've tried extracting the numbers with regular expressions (building upon this post), but I get always NULL. Any hints?


