0

how to substring a text field

Hi

I'm new to pipe creation and i've developed my first one.

It's a very simple pipe which reads in a url of an atom feed from an external site and then I use the resultant url of the rss feed as an output.

http://pipes.yahoo.com/pipes/pipe.info?_id=c6d8e9e8e3d3862ca60750becf1700e5

My question is that I want to limit the amount of text the description field returns from the input.

EG I would equivalent link this to a substring() command where I basically only want the first 100 characters of the field not the full thing.

If you look at my pipe link above you will see the "description" of each of the entries and the text each one brings back.

Can anyone help me alter my pipe to do this.

Thanks Chris

by
2 Replies
  • Hello,

    There is a sub-string module (to be put inside a loop module) that would fit your needs.

    If you want to go further, you could also use regexes to limit the number of words, or limit the number of characters but without cutting in the middle or a word /sentence, ...

    1
  • Hi ,

    perfect , thanks

    the loop with sub-string worked a charm

    0

Recent Posts

in Pipes