Sorry to bother, I feel permanently lost when it comes to regex...
I have to match a string which occurs in a longer sequence of hex-values. My test-string is this:
BF1301020302000017BF1301030101010300FF6ABF130201010300FFC0BF1303010303030100FF98
Pattern is this:
- starts with BF13
- followed by an unknown amount of "01", "02" or "03" repetitions (\w\w)
- 00 marks the termination of the sequence between BF13 and 00
- after the 00-terminator, there are always 4 additional chars
I tried BF13(\w\w)+?00(\w\w){1}
but it's obviously wrong.
The test-string is supposed to match and output these values:
- BF1301020302000017
- BF1301030101010300FF6A
- BF130201010300FFC0
- BF1303010303030100FF98
Thanks, guys!