I am no expert with Perl and regex. So here is my question.
How would I write a regex for matching all words in a string to the right of a specified character and retrieve each word separately in Perl?
I don’t understand how I could match unspecified number of words and then most importantly retrieve it one at a time? If that is not possible what is my best bet in Perl to get this done?
E.G.: I have a C assignment like b=var1+var2. I want to be able to extract var1 and var2 if it exists. The important thing is I do not want to match a specific var1 and var2, but any variable after the assignment operator.
Thanks for the help!
\G/posmay be useful.