Page 1 of 1

SQL/Regex Search for file extension in attachments

Posted: Mon Mar 15, 2021 3:40 pm
by mjvalente
Hello,

I'm trying to do a smart group that identifies all the refs with attachment files that are .epub.

I tried

Code: Select all

attachments REGEX '.epub'
but that does not work and I suck eggs in REGEX. :oops:

Can someone help me?

UPDATE: the REGEX does work, but beside all the epub files it also returns the references that have republic on its title. So, I guess I only need a little nudge on the proper REGEX terminology.

Re: SQL/Regex Search for file extension in attachments

Posted: Mon Mar 15, 2021 6:19 pm
by Jon
I think you have to escape the period with \

'\.epub'

(untried)

Jon
Sonny Software

Re: SQL/Regex Search for file extension in attachments

Posted: Mon Mar 15, 2021 6:50 pm
by mjvalente
And... that worked! :)