[Array] Filtering Elements in an array

Hi again! Is there a way to Filter out all “NOT LINKS” in a primative array? I know it can be done with an iterator and an aggregator, but that method would cost so much operations. is there a cheaper way? Thank You!

All those are valid links used in a html page. Some are named anchor links, some are relative links, and the rest are absolute links. Some of the absolute links are also external links.

So, what do you define as “NOT LINKS”?

2 Likes

I’m looking into using the links starting in “https” only

If you’re “only using an iterator and aggregator”, that will only take two operations. The filter doesn’t consume any operations.

Screenshot_2023-10-13_221001

2 Likes

A filter like this would work, or you can do a ‘contains’ filter like this:

4 Likes