We would like to capture the first three portions (AAA-BBB-CC) into a variable
Is there a way to pull via regex? I think ".*-" should return what we need. But I can't find out how to set it to a variable
I've gotten this far:
Code: Select all
:local ident [/system identity get name];
And this will then return AAA:
Code: Select all
:local loc [:pick $ident 0 [:find $ident -]];
Any help would be appreciated.
Thanks