# How can I split a MQTT string

**URL:** <https://discourse.nodered.org/t/how-can-i-split-a-mqtt-string/57258>\
**Category:** Developing Nodes\
**Created:** [26 January 2022 13:40 UTC](https://discourse.nodered.org/t/how-can-i-split-a-mqtt-string/57258 "2022-01-26T13:40:23Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [26 January 2022 13:45 UTC](https://discourse.nodered.org/t/how-can-i-split-a-mqtt-string/57258/2 "2022-01-26T13:45:35Z")

</div>

Hi.

First, could you please format your post correctly - it is important to surround your code with three backticks

````auto
```
like this
```

````

You can edit and correct your post by clicking the pencil icon.

See this post for more details - [How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506)

* * *

secondly, when copying a value from debug, please use the "copy value2 button that appears under your mouse when you hover over the message in the debug window

* * *

Lastly, can you post a screen snip of the debug output so we can see how it looks.

* * *

PS: Welcome to the forum.

---

_[View the full topic](https://discourse.nodered.org/t/how-can-i-split-a-mqtt-string/57258)._
