I'm trying to join 2 data frames using regex. In one data frame is Postcode Area (e.g. BA, M) in the other is Postcode District (e.g. BA1, M18). I want to join on the Postcode Area. My regex is ([A-Z][A-Z]?). How to I actually join the two data frames on this regex?
My regex is ([A-Z][A-Z]?).