How to filter PDF links from array of URLs?

I’m trying to extract a list of URL’s pointing to PDF files, but can’t get my head around the filtering process. I’ve tried the string ends with option and also regex match. I was trying this with a code node, but wasn’t getting anywhere with it, so decided the low code approach. Still no luck (

Information on your n8n setup

  • **n8n version: 1.84.3
  • **Database (default: SQLite): default
  • **n8n EXECUTIONS_PROCESS setting (default: own, main): default
  • **Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • **Operating system: mac os 15.2

Add a split out node before filter and it will work

You were filtering an array by string match. Splitting yuo will be able to filter url string

1 Like

Great, that worked a charm :slight_smile:

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.