02-16-2012 03:25 PM
Hi, I have a string, which has 3-10 same substring , how can I get only one substring, that means, find the first substring matched the search criteria, then stop.
The string like:
0000 0000 0000 0000 0000 0000 0000 0135 3046 3030 3146 3404 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0001 3530 4630 3031 4634 0400 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0135 3046 3030 3146 3404 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0001 3530 4630 3031 4634 0400 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0135 3046 3030 3146 3404 0000 00
02-16-2012 04:14 PM
Just this snippet will return the first full match of the string
02-16-2012 07:23 PM
The string was updating dynamiclly, the substring is not fixed.
02-16-2012 10:06 PM
02-17-2012 08:35 AM
yes, the substring changed dynamically,but all follow the format 01xxx04; I just want to find the first 01XXXX04, and ignore others.