Hi,
I would need some help with the following. Here is an example string:
"- 05FOGB955568-004BLCA-000 - 10 - 5320 Jean Mance East - Halifax - HN - H1H 1H1 Comment: NMBA 1435 change from 100BT to 10BT"
I would like to have everything in between all the dashes to be variables. Example:
"- 05FOGB955568" = var1
"-004BLCA" = var2
"-000" = var3
"- 10" = var4
"- 5320 Jean Mance East" = var5
"- Halifax" = var6
"- HN" = var7
"- H1H 1H1" Comment: NMBA 1435 change from 100BT to 10BT = var8
The problem is that the "dashes" in each string can be anywhere and the number of dashes can vary. How can I get what the result. can anybody help?
thanks,
F1
I would need some help with the following. Here is an example string:
"- 05FOGB955568-004BLCA-000 - 10 - 5320 Jean Mance East - Halifax - HN - H1H 1H1 Comment: NMBA 1435 change from 100BT to 10BT"
I would like to have everything in between all the dashes to be variables. Example:
"- 05FOGB955568" = var1
"-004BLCA" = var2
"-000" = var3
"- 10" = var4
"- 5320 Jean Mance East" = var5
"- Halifax" = var6
"- HN" = var7
"- H1H 1H1" Comment: NMBA 1435 change from 100BT to 10BT = var8
The problem is that the "dashes" in each string can be anywhere and the number of dashes can vary. How can I get what the result. can anybody help?
thanks,
F1