# Make it possible to divide regular expressions into chunks

**URL:** <https://es.discourse.group/t/make-it-possible-to-divide-regular-expressions-into-chunks/355>\
**Category:** 💡 Ideas\
**Created:** [June 6, 2020, 1:34pm UTC](https://es.discourse.group/t/make-it-possible-to-divide-regular-expressions-into-chunks/355 "2020-06-06T13:34:48Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jridgewell](https://yyz2.discourse-cdn.com/free1/user_avatar/es.discourse.group/jridgewell/32/18_2.png) [@jridgewell](https://es.discourse.group/u/jridgewell)\
**Post date:** [June 8, 2020, 6:00pm UTC](https://es.discourse.group/t/make-it-possible-to-divide-regular-expressions-into-chunks/355/2 "2020-06-08T18:00:44Z")

</div>

Doing this with syntax (two regex literals directly next to each other) is actually very difficult, due to the similarities with infix division operator. Actually, just parsing a single regex is difficult due to division operator.

There's a related regex feature called [free spacing](https://www.regular-expressions.info/freespacing.html) that would allow just this. It hasn't been discussed in a while, though. Last mention I can find is [Allow spaces in curly brackets in RegularExpressions](https://es.discourse.group/t/allow-spaces-in-curly-brackets-in-regularexpressions/296/2)

---

_[View the full topic](https://es.discourse.group/t/make-it-possible-to-divide-regular-expressions-into-chunks/355)._
