I am scrapping info from a webpage into Google Sheets using scripts. The information contains addresses similar to 123 Test St, MKE
I am seeking help with a script that will take 'MKE' at the end, and convert it to 'Milwaukee, WI'
I have looked into regex replace functions but cannot solve this problem.
I have also come across code that assists, but does not complete what I am looking for.
function doTest() {
var sheets = SpreadsheetApp.getActiveSpreadsheet().getSheets();
for ( var i = 0 ; i<sheets.length ; i++) {
var sheet = sheets[i];
sheet.getRange('C:C').setValue('Milwaukee');
}
}
Any further suggestions?