Welcome to openkapow Sign in | Join
.

(Solved) Ignore text based on pattern during extraction

  •  03-03-2008, 6:40 PM

    (Solved) Ignore text based on pattern during extraction

    I am building a RSS feed, which description looks like this

    ------------------------------------------

    TEXT

      Text1
      Text11

    Article read 2 times

     

      Text2
      Text21

    Article read 4 times

     

      Text3
      Text31
    Article read 12 times

    ------------------------------------------

    Problem: "Article read xx times" keeps changing and sending new articles to my RSS reader.

    I found a simple way to skip this text. This may be trivial to most of OK users, but I hope that it can help some.

    The trick is to add a "Replace pattern" converter in the "Extract description" step.

    Pattern: (Article read.*? times)  "*?" stands for the smallest possible text

    Replace expression: "\n" (line feed)

View Complete Thread
.
Copyright 2006, 2007 KapowTech.com All Rights Reserved Company | Contact | Terms | Privacy