I am trying to use a formula to grab the Quarter/Year of a string from a filename. It gets tricky because I have multiple files but the names are not always the same length. For instance, consider the following files:
CAJCD_Q116_12345.txt
CA_Q215_ABCDE.txt
ABCD_Q313_AAAA.txt
I would need to grab the "Qxxx" from each of those. I tried using REGEX_REPLACE but can't seem to figure out the appropriate formula. Can I use REGEX_REPLACE for this or is there an easier/different way?