Greetings,
I have a need to split the following string from this:
1234_5678.901.A_1.jpg
to this:
1234_5678.901.A
If I use the following split function, it splits at the first '_', where I need it to split at the 2nd '_'
split(outputs('Get_File_Name'), '_')[0]Is there a way to reference the second underscore in the split function?
Thank you; in advance!
Update - I resolved this by removing the second '_' in the generated filename and replacing it with a '-'. I then used the following split function:
split(outputs('Get_File_Name'), '-')[0]This works for my needs.