Partial regexp matching

Isiah Meadows isiahmeadows at gmail.com
Fri Feb 16 07:14:14 UTC 2018


Here's a few examples:

- C++ via Boost:
http://www.boost.org/doc/libs/1_66_0/libs/regex/doc/html/boost_regex/partial_matches.html
- Java via `java.util.regex.Matcher::hitEnd`:
https://docs.oracle.com/javase/9/docs/api/java/util/regex/Matcher.html#hitEnd--
- Python via `regex` (enabled via keyword arg):
https://pypi.python.org/pypi/regex

Any of these would suffice to solve my issue.

Also, I'm not the first to request this:
https://esdiscuss.org/topic/partial-matching-a-string-against-a-regex

-----

Isiah Meadows
me at isiahmeadows.com

Looking for web consulting? Or a new website?
Send me an email and we can get started.
www.isiahmeadows.com


On Thu, Feb 15, 2018 at 10:04 AM, Peter Jaszkowiak <p.jaszkow at gmail.com> wrote:
> Do _any_ languages have support for this? It doesn't sound that useful, and
> I have no idea what you mean by "matching tests via regexp-based selectors".
> Can you provide an example?
>
> On Feb 15, 2018 06:12, "Isiah Meadows" <isiahmeadows at gmail.com> wrote:
>
> I've been working on a test framework, and I'd love to implement
> support for matching tests via regexp-based selectors. It's basically
>
> impossible without the ability to execute a regular expression and
> test if it matched positively, negatively, or incompletely.
>
> - If the regexp does not have an end marker, this, of course, can't
> generate a *negative* match, only positive/incomplete ones.
> - If the regexp *does* have an end marker, this is where I actually
> need native support. (This is especially true if group references get
> involved.)
>
> Any chance this could get added?
>
> -----
>
> Isiah Meadows
> me at isiahmeadows.com
>
> Looking for web consulting? Or a new website?
> Send me an email and we can get started.
> www.isiahmeadows.com
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
>


More information about the es-discuss mailing list