Using JavaScript regexes.
I'm trying to match blocks of text in the form:
$Label1: Text1
    Text1 possibly continues 
$Label2: Text2
$Label3: Text3 
     Text3 possibly continues
I want to capture the label and the text separately, so that I'll end up with
["Label1", "Text1 \n Text1 possibly continues", 
 "Label2", "Text2", 
 "Label3", "Text3 \n Text3 possibly continues"]
I've got a regex \$(.*):([^$]*) which matches a single instance of the pattern. 
I thought maybe something like this: (?:\$(.*):([^$]*))* would give me the desired results, but so far I haven't been able to figure out a regex that works.
 
    
 
     
    