Trying to find folders that start with variables that are NOT case sensitive
var varname = ("BUI")
var stringMatch = "\\" + varname + "\\b";
if (FolderItems[i].name.match(stringMatch)) {
//do script
}
I find Regex pretty confusing, I know varname = \\\BUI\\\b
, but what do I need to find a folder that begins with that variable? I'd like this to find a folder called 'Building_v02'