I am trying to use regular expression to search and replace multiple times on a same line. I believe that Regex can do this using either positive lookahead/lookbehind feature.
I have a long list of states and the airports in them. And I am trying to put them all in the
State, Aiport pairs, one line at a time.
Here is the input
State, Airports ---------------- Chicago, ORD, MDW NY, JFK, LGA, EWR California, LAX, JWA, LGB, BUR
Here is the output.
Chicago, ORD Chicago, MDW NY, JFK NY, LGA NY, EWR California, LAX California, JWA California, LGB California, BUR
Can you please help suggest a regex or any other way to accomplish this? Thank you.
I use Notepad++ for the Regex, but can use any text editor for this.