I’m trying to pull out just the filename from a text field using regex patterns. My regex works fine when I test it online but keeps failing in Airtable.
The pattern I want to use is (?:[\\])(.*)
which should match everything after a backslash character.
Here’s my sample data: Project Files - Archive 📁 - documents [123456789012345678].csv_Data\photo_2023-A45BC.PNG
My current formula looks like this: REGEX_EXTRACT({File_Path}, '(?:[\\])(.*)')
but it throws an error.
When I use a simpler pattern like REGEX_EXTRACT({File_Path}, '[0-9A-Za-z]*\.[0-9A-Za-z]*')
it works and returns ‘Project Files’ successfully. But as soon as I try using groups with REGEX_EXTRACT({File_Path}, '(?>[0-9A-Za-z]*)(\..*)')
I get #ERROR again.
Can anyone tell me if Airtable actually supports regex capture groups? What might I be doing incorrectly here?