# Function String Extract

**URL:** <https://discourse.nodered.org/t/function-string-extract/6775>\
**Category:** General\
**Created:** [14 January 2019 06:51 UTC](https://discourse.nodered.org/t/function-string-extract/6775 "2019-01-14T06:51:46Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [14 January 2019 10:19 UTC](https://discourse.nodered.org/t/function-string-extract/6775/5 "2019-01-14T10:19:58Z")

</div>

you could try this. Add a change node after where the data comes out and select the jsonata option and add in `$substring(payload,6,11)` - note you may have to play with the offsets  
 ![33%20AM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/9/959368da581f9312ccd28f16e6de1bf04bf4963a.png)

---

_[View the full topic](https://discourse.nodered.org/t/function-string-extract/6775)._
