05-01-2013 10:44 AM
Hi,
Although this is a fairly simple task, I am stuck with splitting an array.
Lets take an example
"group_device_project_PART1_voltage_current"
I have to get the voltage and the current out of the string.
The problem is, the section PART1 keeps changing randomly. Is there a way I can split using PARTx where x is a variable?
05-01-2013 11:49 AM - edited 05-01-2013 11:54 AM
@Mr_Miagi wrote:
Hi,
... "group_device_project_PART1_voltage_current" ...
If this is what the text always looks like, you can always take the 5th and 6th elements without worrying about the "x" in Partx:
If it's not that easy, you can use a Regular Expression to find the "Partx":
Match Pattern will work, too.