06-05-2007 09:22 AM
06-05-2007 09:42 AM - edited 06-05-2007 09:42 AM
06-05-2007 10:15 AM
06-05-2007 10:43 AM - edited 06-05-2007 10:43 AM
I guess I did not explain myself correctely.
Each string starts and ends with 7E. That's why my regular expression was 7E.+7E.
My first solution was to implement a shift register with match pattern to return every matching string in an array but all I gos was the longest matching string.
Here is my primary (not working correctely) solution:
Can anybody help?
Message Edited by Forsaken Angel on 06-05-2007 10:45 AM
06-05-2007 10:55 AM
I forgot to state that I also would like to keep the 7E delimiters at the start and end of each substring in the array.
Thanks
06-05-2007 11:05 AM
06-05-2007 11:16 AM
Thanks
Daniel's solution did it. The problem is that I still need the 7E characters on the strings where there was a match.
I could concatenate the character at the beggining and end of each substring but that would not be correct, because I could just receive part of the string (this program will be integrated with serial communication), and it would place a 7E character in the middle of a string that has not been fully received.
06-05-2007 12:02 PM
06-06-2007 03:02 AM - edited 06-06-2007 03:02 AM
Message Edited by dan_u on 06-06-2007 10:06 AM