I have a string:
st="[~620cc13778d079432b9bc7b1:Hello WorldGuest]"
I just want the part after ":" and before "]". The part in between can have a maximum length of 64 characters.
The part after "[~" is 24 character UUID.
So the resulting string would be "Hello WorldGuest".
I'm using the following regex:
r"(\[\~[a-z0-9]{24}:)(?=.{0,64})"
But that is only matching the string till ":", I also want to match the ending "]".