IF THEN in Custom Parsers

Post Reply
Posts: 19
Joined: 21 Sep 2017, 15:38

IF THEN in Custom Parsers

Post by kaosnews » 13 Sep 2021, 14:01

I have a list in a text and sometimes they are XL images (XLimages) and normal images (Limages) and sometimes they are only normal images. I can easily extract the XLimages but I also want the normal images if there are no XL images present. So in the regex I want to make someting link if there are no XLimages then take the Limages. Is this possible (with Regex)?

Site Admin
Posts: 1504
Joined: 02 Mar 2009, 17:02

Re: IF THEN in Custom Parsers

Post by Maxim » 13 Sep 2021, 14:27

This is tough. And differs a lot from site-to-site. Usually I cannot solve it with Custom Parsers only. I have to use Excluded Page Parts to remove links to lower-resolution files and even that does not always work correctly.

If you give me the actual links - I can try to help.

Post Reply