Something like this would be ideal:
Code: Select all
[admin@MikroTik] > :local testString "FQDN: host.documentation.net"; :if ( $testString ~"^FQDN: (.*)\$" ) do={ :put $1 }
Where $1 is the contents of the first capturing group, returning "host.documentation.net" at the end of the script.
If there's already a means to accomplish this, please let me know. I haven't been able to find much in my digging.