Let's say I have a text file with these contents:
color1 = yellow.$199 * 100
color2 = red.$1 * 22
myNextColor = green.$3
whatsNext = blue.$$
oneMore = orange.$
I need to be able to get an array like this:
colorsInFile = ["yellow","red","green","blue","orange"]
In python, the regex for picking this out is:
r'=\s*(\w+)\s*\.\$'
What's the java equivalent?
Thanks for the help :)