Let's say i have a body of text like this
["What Color",["Red","Blue","Green","Yellow","Brown","White"]]
What is the regex to match a color
i try this
while ($mystring =~ m,/"(.*?)"/|,|[/"(.*?)"|,|/],g);
print "Your Color is : [$1]\n";
Can someone help me this perl scripts should print
- Your Color is: Red - Your Color is: Blue - Your Color is: Green - Your Color is: Yellow - Your Color is: Brown - Your Color is: White