I have a string with hex values, for example:
01 02 03 AA BB CC FF 09 65 AA BB DE F2
And my need is take part of this string before first AA BB. I try do it with regular expressions. My ideas are around something like this:
(([0-9A-F]{2} )+(AA BB )){1}
And after match take first group. But it's not works. Could somebody help me with this task, please?