# RegExp and/or methods

**URL:** <https://es.discourse.group/t/regexp-and-or-methods/1371>\
**Category:** 💡 Ideas\
**Tags:** proposal\
**Created:** [June 18, 2022, 11:57am UTC](https://es.discourse.group/t/regexp-and-or-methods/1371 "2022-06-18T11:57:14Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![aclaymore](https://yyz2.discourse-cdn.com/free1/user_avatar/es.discourse.group/aclaymore/32/501_2.png) [@aclaymore](https://es.discourse.group/u/aclaymore)\
**Post date:** [June 19, 2022, 9:34am UTC](https://es.discourse.group/t/regexp-and-or-methods/1371/3 "2022-06-19T09:34:20Z")

</div>

Some related content:

> [@RegExp composition](https://es.discourse.group/t/regexp-composition/1278):
>
> It would be useful to have a way to compose RegExps without having to resort to splicing source strings. This would let one build complex parsers out of simpler ones without having to think about non-capturing groups, and let one write test for the pieces. Rather than full expressions used in template strings, one could something along /(?\>id)/ where id is a JS variable. I haven't tracked all propositions, but at least two of the current propositions ([pattern modifiers](https://github.com/tc39/proposal-regexp-modifiers) and [set notation](https://github.com/tc39/proposal-regexp-set-notation)) that i…

> **[compose-regexp](https://www.npmjs.com/package/compose-regexp)**
>
> A set of functions to build and compose complex regular expressions. Latest version: 0.7.1, last published: 8 months ago. Start using compose-regexp in your project by running \`npm i compose-regexp\`. There are 3 other projects in the npm registry...

---

_[View the full topic](https://es.discourse.group/t/regexp-and-or-methods/1371)._
