Is there a way to add more than one gsub to a feed? And how about eliminating the () that remains?
Forums
Feed Informer Support
gsub
5 posts-
Posted 17 years ago #
-
1) You can nest them. <gsub><gsub><gsub></gsub></gsub></gsub> etc..
2) In theory you can just add those () to the replace pattern.. there shouldn't be any remnants, but I am willing to look at your specific digest if you are having problems.
Posted 17 years ago # -
Can you? It's feed http://app.feeddigest.com/digest3/BIYHDGAXLV.html . It's not letting me gsub multiple words and I can't remove the ()
Posted 17 years ago # -
Note that when you nest them, you also need to close each of them. That's why it currently is broken for you. Currently you have it as:
<gsub from="subscription" to=""><gsub from="press release" to="">%TITLE%</gsub>
but you need another </gsub> on the end to stop both gsubs :)
Also.. does this work?
<gsub from="(press release)" to="">%TITLE%</gsub>
If not, I might have to look into that. Sometimes brackets can be an annoyance. As a temporary measure also try:
<gsub from="\(press release\)" to="">%TITLE%</gsub>
That may work instead.
Posted 17 years ago # -
I notice you seem to have resolved the issue, so I am closing this thread :)
Posted 17 years ago #
Topic Closed
This topic has been closed to new replies.