This question already has an answer here:
- Regexp won't match 2 answers
I am receiving this string "\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80J\x13\x80SQ\x80L\xe0\x80@\x92\x80L?\x80H\xe0" from a function (which runs a GET command on a redis bitmap and gives me the serialized string)
But due to escape sequences I am having trouble matching this kind of pattern. Can some please tell me the regex sequence that will match this kind of string?
.*will match your string, but I'm guessing you're looking for something more specific than that. – Adrian Aug 31 at 15:14SET key valueand onGET keyI getvaluesimilarly I get this kind \x01\x00\x00... of a string value when I runGETon a bitmap key. So I want to differentiate between the two to know on which data structureGETwas called or to which data structure the key belongs to. @Adrian – BUTTHEAD Aug 31 at 15:21r/golang. – kostix Aug 31 at 15:35