A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/tc39/proposal-regexp-set-notation/issues/3 below:

Interaction with properties of strings a.k.a. sequence properties · Issue #3 · tc39/proposal-regexp-v-flag · GitHub

It’s an explicit goal of this proposal to figure out how set notation interacts with properties of strings.

Here’s the high-level syntax again:

// difference/subtraction
[A--B]

// intersection
[A&&B]

// nested character class
[A--[0-9]]

You can imagine A and B being properties of strings. In that case, we‘d get e.g.

// match all multi-code point emoji sequences:
\p{RGI_Emoji}--\p{Emoji}

@msaboff mentioned he’d prefer different syntax depending on how the two proposals interact. Michael, could you elaborate?


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4