Page 1 of 1

IF THEN in Custom Parsers

Posted: 13 Sep 2021, 14:01
by kaosnews
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)?

Re: IF THEN in Custom Parsers

Posted: 13 Sep 2021, 14:27
by Maksym
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.