S
sklett
given one of these two string:
ProtocolRecord(0, 100, 100, arZeroMax , 1, 0, SKIP,0),
ProtocolRecord(0, 100, 100, arSetSet , 4, 0, DJMPNZSTOP, (void *)
&Protocol_TD[0])
I want to pull all the values out that are separated by commas and the last
value. I have no guarantee that there won't be a space before the comma
(IE: "0 , 0") they could also be: "0,0" or "0, 0"
I'm new to RegEx and learning as fast as I can. I cam up with this pattern,
but it's not getting a match:
@"ProtocolRecord\((\d)\w(\d)\w(\d)\w(\w+)\w(\d)\w(\d)\w(\w+)\w(\w+|\d)\)";
What I thought this would do was search for "ProtocolRecord(" then a digit,
then some word characters (' ' and ',')
I'm sure someone sees the error(s) here, is you do, can you clue me in?
Thanks for reading,
Steve
ProtocolRecord(0, 100, 100, arZeroMax , 1, 0, SKIP,0),
ProtocolRecord(0, 100, 100, arSetSet , 4, 0, DJMPNZSTOP, (void *)
&Protocol_TD[0])
I want to pull all the values out that are separated by commas and the last
value. I have no guarantee that there won't be a space before the comma
(IE: "0 , 0") they could also be: "0,0" or "0, 0"
I'm new to RegEx and learning as fast as I can. I cam up with this pattern,
but it's not getting a match:
@"ProtocolRecord\((\d)\w(\d)\w(\d)\w(\w+)\w(\d)\w(\d)\w(\w+)\w(\w+|\d)\)";
What I thought this would do was search for "ProtocolRecord(" then a digit,
then some word characters (' ' and ',')
I'm sure someone sees the error(s) here, is you do, can you clue me in?
Thanks for reading,
Steve