 
 
 ;Main Regex: Include\s+"(.*)"\s*,\s*(\w+)\s+as\s+string
-pattern := "iO)" . "Include\s+"((?!.*Include).*?)"\s*,\s*(\w+)\s+as\s+string"
+pattern := "iO)" . "Include\s+"((?!.*Include).*?)"\s*,\s*((?!as\b)\w+)\s+as\s+string"
 
 ;What does the regex mean?
 ;~~~~~~~~~~~~~~~~~~~~~~~~~
 ;The desired match should consist of 'Include "<some characters>" , <some variable name> as string'
 ;The following is an illegal match 'Include "<some characters> Include" , <some variable name> as string'
+;The following is an illegal match 'Include "<some characters>" as as string'
+;But this is a legal match 	   'Include "<some characters>" asd as string'
+;As well as			   'Include "<some characters>" bas as string'
 ;Prefix Option "i" makes the regex case insensitive.
 ;Prefix Option "O" makes the regex return an object.
 ;The following match is legal: 'Include "someImage.png", someImage as string' in 'Include "someScript.mb"Include "someImage.png", someImage as string'

  ;Return concatenation of the left and right parts.
  return leftPart . rightPart
}

      
      ;Find the next match
      match = RegExMatch(MB, pattern, mObj, match)
   }  ;All 'Include "someFile", asdf as string' have been removed from MB. MB therefore contains the 'most complete' script so far
  
  ; filepath variable declarations
  sJoin := ImportFiles_StrJoin(sFileVars,",")
  header = %header%`r`nDim %sJoin% as string
  
  ;Next steps, generate
  ; filedata variable declarations
  ; getFileData
  ; concatenate with MB
}




