# Filter a Payload

**URL:** <https://discourse.nodered.org/t/filter-a-payload/23119>\
**Category:** General\
**Created:** [14 March 2020 22:33 UTC](https://discourse.nodered.org/t/filter-a-payload/23119 "2020-03-14T22:33:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zyan](https://avatars.discourse-cdn.com/v4/letter/z/8e7dd6/32.png) [@Zyan](https://discourse.nodered.org/u/Zyan)\
**Post date:** [14 March 2020 22:33 UTC](https://discourse.nodered.org/t/filter-a-payload/23119/1 "2020-03-14T22:33:29Z")

</div>

Hello Guys,

How can i Seperate the Last part of my Message that i only forward the part in the Circle ?

That i only send "0" or in the Second "81" to the next node

![point](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/7/9729e797e584931d508bc80e1e0bbbd5035ebec4.png)

Thx in Advance

---

<div class="post-metadata">

**Author:** ![dathor](https://avatars.discourse-cdn.com/v4/letter/d/ad7895/32.png) [@dathor](https://discourse.nodered.org/u/dathor)\
**Post date:** [15 March 2020 05:35 UTC](https://discourse.nodered.org/t/filter-a-payload/23119/2 "2020-03-15T05:35:44Z")

</div>

`msg.payload.split('.').slice(-1).pop();`

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [14 May 2020 05:35 UTC](https://discourse.nodered.org/t/filter-a-payload/23119/3 "2020-05-14T05:35:47Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
