I am looking for two Regex (or any better way in Ruby) that will give me specific word out of a string.
The string I have is:
<string name="animal">dog</string>
I want to take out "animal
" and "dog
" from the string so I need two scripts for each word. I have looked into the available options but could not find a better solution. Any help would be highly appreciated.