RSS Feed/News Template modification with regex within condition

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
26,890
Points
823

Reputation:

Is it possible to find a element with regex within condition? Or any other approach to get that?

I need something like:
Code:

Code:
<xf:if is="condition == 1">
    #(<div [^>]*class="[^"]*first-class[^"]*"[^>]*>)#isU
<xf:else />
    #(<div [^>]*class="[^"]*another-class[^"]*"[^>]*>)#isU
</xf:if>

Continue reading...
 
Status
Not open for further replies.
Top