I am looking for regex pattern to extract the two words from a given text. I am looking for regex for applying in config file which would substitute in java code
For example - I have a long string - pabc_extracted_data_US_NETFLI_2020-11-26-17-02-03.csv.gz I want to extract whatever string coming after pabc_extracted_data_ (here US) and also looking for another regex for whatever string coming after pabc_extracted_data_US_ (here NETFLI)..
so my expected output for two regex would be US & NETFLI. Please help me as I'm new to this regex world