everyone. I want to write a condition that matches/validates specified string pattern below.
METRICS__video1::[VIEWS=1000,LIKES=20,DISLIKES=20]
There should be no space. 2 string should be joined by 2 underscores(__) before colon(::). And after colons, sentence should be enclosed in square brackets([]). Sentence should have an integer after equals(=) and string before equals(=) separated with commas(,).
Any idea or whats the best way to do this. Thanks in advance.