# Global replace for bbcode \[code\] with backticks

**URL:** <https://meta.discourse.org/t/global-replace-for-bbcode-code-with-backticks/111097>\
**Category:** Product Support\
**Created:** [March 8, 2019, 4:44pm UTC](https://meta.discourse.org/t/global-replace-for-bbcode-code-with-backticks/111097 "2019-03-08T16:44:44Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![AndyBr](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@AndyBr](https://meta.discourse.org/u/AndyBr)\
**Post date:** [December 27, 2020, 11:38pm UTC](https://meta.discourse.org/t/global-replace-for-bbcode-code-with-backticks/111097/6 "2020-12-27T23:38:37Z")

</div>

I am unable to insert newlines either using `rake posts:remap` with the regex replace. No idea if it can even be done.

Q: If I do updates with via the database, do I need to edit both the raw and cooked versions, or if I update the raw will it update the cooked version automagically or do I need to do something to have it update?

I assume the [data explorer](https://meta.discourse.org/t/32566?silent=true) plugin just does Queries and doesn’t do UPDATEs?

---

_[View the full topic](https://meta.discourse.org/t/global-replace-for-bbcode-code-with-backticks/111097)._
