2 RegExp problems:
1. You can not compose a bigger regexp out of smaller ones
2. A regexp can not "call" other regexps
1. You can not compose a bigger regexp out of smaller ones
2. A regexp can not "call" other regexps
let s = "abc" + "def";
Why can't I do: let regExp = /abc/ + /def/;
If JavaScript (or some other) interpreter can turn
/abc/ into a RegExp, why can't it do the same for/abc/ + /def/
?
[1]: https://github.com/swiftlang/swift-evolution/blob/main/propo...