For the strings:
text::handle:e@ma.il::texttext::chat_identifier:chat0123456789&text
I have the current regex:
m/(handle:|chat_identifier:)(.+?)(:{2}|&)/
And I am currently using $2 in order to obtain the value I wish (in the first string e@ma.il and in the second, chat0123456789).
Is there a better/faster/simpler way to solve this problem, though?