REGEX to extract word connected to nearest semicolon?
- by John Kaybern
I'm attempting to extract a series of data values from a text file.
The values are in the format: <MODIFIER NAME1 VALUE; MODIFIER NAME2 VALUE;>
For the purposes of the current task that I have, I only care about extracting the VALUE that is situated next to each semicolon. What would the REGEX command look like that would isolate each of these VALUES (preferably so that I backreference all values in the replacement part of my processing.) I believe that ^(.*?); is somehow used, but I'm not seeing how to isolate only the word that is attached to the semicolon in a group for backreference use.
Thanks!