I have a requirement to avoid the files which start with AA and XAA from the given folder. I am using listFilesInDirectory service to fetch the files. I can substring the file name and then put a condition to avoid the files. But i want to use regular expression in listFilesInDirectory service, so that i can get the files which doesnot start with AA or XAA.
I have tried with [^AA]|[^XAA] but didnt work out.
Please provide your suggetions…
Thanks in advance.