How to make Regex case insensitive
Hi. Does anyone know the best way to make a regex search case insensitive in JSL? For example, I wish to extract the file extension from a path name, and I don't want it to matter if the extension is ".csv" or ".CSV" or ".cSv". If I try the following, it will only work on filenames whose extensions are lowercase: filename = Regex(path, "(.+\/)*([^\/]+)\.(csv|xlsx)$", "\2")
One method is to just...