# Simple Question: TransformationPattern to remove brackets

**URL:** <https://community.openhab.org/t/simple-question-transformationpattern-to-remove-brackets/91548>\
**Category:** Scripts & Rules\
**Created:** [January 28, 2020, 2:11pm UTC](https://community.openhab.org/t/simple-question-transformationpattern-to-remove-brackets/91548 "2020-01-28T14:11:30Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![rlkoshak](https://community.openhab.org/user_avatar/community.openhab.org/rlkoshak/32/75251_2.png) [@rlkoshak](https://community.openhab.org/u/rlkoshak)\
**Post date:** [January 28, 2020, 5:04pm UTC](https://community.openhab.org/t/simple-question-transformationpattern-to-remove-brackets/91548/7 "2020-01-28T17:04:55Z")

</div>

> [@alfista2600](#):
>
> I’m not sure if I can apply the JSON transformation and the JS transformation to a channel in a MQTT thing

You can. See [MQTT 2.5 M1+ How to implement the equivalent to MQTT1 REGEX filters](https://community.openhab.org/t/mqtt-2-5-m1-how-to-implement-the-equivalent-to-mqtt1-regex-filters/68350) for an example using PaperUI. You will need to find someone else to help translate that to .things files.

Also, a JS transform is way overkill for this. Just use `REGEX:\[(.*)\]` (assuming there is no white space around it).

---

_[View the full topic](https://community.openhab.org/t/simple-question-transformationpattern-to-remove-brackets/91548)._
