From: Rogers T. - IT T. A. <Ter...@po...> - 2018-11-15 08:49:20
|
I am in the process of creating a template to format and display passed parameters in a standardised way. I am passing a parameter as follows:-- nics=192.168.29.21;255.255.240.0;192.168.31.254;false;00:50:56:81:46:24#192.168.29.21;255.255.240.0;192.168.31.254;false;00:50:56:81:46:24#192.168.29.21;255.255.240.0;192.168.31.254;false;00:50:56:81:46:24 I need to be able to split this parameter into its grouped parts between the # symbol, and then pass each group of values to a new property: [[Has NIC::192.168.29.21;255.255.240.0;192.168.31.254;false;00:50:56:81:46:24]] [[Has NIC::192.168.29.21;255.255.240.0;192.168.31.254;false;00:50:56:81:46:24]] [[Has NIC::192.168.29.21;255.255.240.0;192.168.31.254;false;00:50:56:81:46:24]] Any help much appreciated. Terry Rogers | IT Technical Architect Portsmouth Hospitals NHS Trust |