Ace Master
Centurion
- Joined
- Aug 28, 2003
- Messages
- 140
Hi to all.
I'am new with regex option and I know to make some triks but with the problem I have I can't make it working as I want to.
Ex:
I have one serial communication for input and output. With input I don't have any problems, but everything I take out I want to put them in some check box's like this:
Received string :
Di,30,11,22,33,44,1,12356
MT>
I want to put all that in this order:
var1= i
var2=30
var3=11
var4=22
var5=33
var6=44
var7=12356
and....because always is some kind of problem, my received string cand be like that
Di,30,,,,,1,12356
MT>
..and I want the same variables but where is no value, my textbox to be empty
var1= i
var2=30
var3=""
var4=""
var5=""
var6=""
var7=12356
it is possible to make such regex ?
thanks in advance.
I'am new with regex option and I know to make some triks but with the problem I have I can't make it working as I want to.
Ex:
I have one serial communication for input and output. With input I don't have any problems, but everything I take out I want to put them in some check box's like this:
Received string :
Di,30,11,22,33,44,1,12356
MT>
I want to put all that in this order:
var1= i
var2=30
var3=11
var4=22
var5=33
var6=44
var7=12356
and....because always is some kind of problem, my received string cand be like that
Di,30,,,,,1,12356
MT>
..and I want the same variables but where is no value, my textbox to be empty
var1= i
var2=30
var3=""
var4=""
var5=""
var6=""
var7=12356
it is possible to make such regex ?
thanks in advance.