I have a list of strings like so:
['NN.KTXS/KTXE.FOO BAR.STACK.OVERFLOW', 'NN.WFXL.Harlan KY.Harlan.KY', 'NN.WRGB/WCWN.Los Angeles CA.Burbank.CA', 'NN.KVII/KVIH.Denver.Denver.CO', 'NN.KEYE.Denver.Denver.CO']
I am trying to use a regular expression to strip out the portion of text between NN.
(including that) and the second .
, so the list would look like:
['FOO BAR.STACK.OVERFLOW', 'Harlan KY.Harlan.KY', 'Los Angeles CA.Burbank.CA', 'Denver.Denver.CO', 'Denver.Denver.CO']
I have tried using regex101 to build and test this, using: "NN\.[A-z]{?}\."
but I am not getting any matches.
How can I build that regular expression?