Code: Select all
<f>
<l> rel="self" type="application/atom+xml" href="https://forum.rainmeter.net/feed" </l>
<t>Rainmeter Forums</t>
<l> href="https://forum.rainmeter.net/index.php" </l>
<u>2019-02-27T22:02:34</u>
<author><name><![CDATA[Rainmeter Forums]]></name></author>
<id>https://forum.rainmeter.net/feed</id>
<e>
<author><name><![CDATA[dumb hobo]]></name></author>
<u>2019-02-27T22:02:34</u>
<p>2019-02-27T22:02:34</p>
<id>https://forum.rainmeter.net/viewtopic.php?t=27717&p=159674#p159674</id>
<l> href="https://forum.rainmeter.net/viewtopic.php?t=27717&p=159674#p159674"</l>
<t><![CDATA[Help: Rainmeter Skins • Re: sliding in and and out a sidebar along with all its components]]></t>
<category> term="Help: Rainmeter Skins" scheme="https://forum.rainmeter.net/viewforum.php?f=5" label="Help: Rainmeter Skins"</category>
<s><![CDATA[
You can contact me i can give you my info in message just in case !<p>Statistics: Posted by <a href="https://forum.rainmeter.net/memberlist.php?mode=viewprofile&u=48282">dumb hobo</a> — Yesterday, 10:02 pm</p><hr> </hr>
]]></s>
</e></f>
"(?siU)(?<=<f>|<e>|</e>|</t>|</s>|</l>|</u>|</p>|</o>).*(?=</f>|</e>|<e>|<t>|<s>|<l>|<u>|<p>|<o>)":""
What I'm looking for is to delete anything (non-greedy) between my custom starting and ending tags above, basically cleaning the text of unneeded parts. Now, if I enter the text and the equivalent of the regex above at RegExR (PCRE flavor selected, same flags being set, etc.), everything works fine and the appropriate selection is made and deleted, but when I apply the regex in Rainmeter, it deletes the whole content, leaving me with <f></f>. Why is that, and how can I correct it? Please don't tell me that positive lookbehinds don't work in Rainmeter, cause I'll be extremely upset by it...
NOTE: The / must be escaped at RegExR, so the regex will have to be entered like this:
(?<=<f>|<e>|<\/e>|<\/t>|<\/s>|<\/l>|<\/u>|<\/p>|<\/o>).*(?=<\/f>|<\/e>|<e>|<t>|<s>|<l>|<u>|<p>|<o>)