Partial matching a string against a regex

Michael J. Ryan tracker1 at
Sat Mar 4 19:20:32 UTC 2017

I actually like the idea... You can do an optional matching block for
parents (...)? But that would be patterns for each character...  Having a
String.startsWith that can do a match against the start of a rexexp would
be cool.  and/or regex.testStart

Michael J. Ryan - tracker1 at -

Please excuse grammar errors and typos, as this message was sent from my

On Mar 4, 2017 6:36 AM, "Kent C. Dodds" <kent at> wrote:

> I can't say that I know what the repercussions of such a feature would be,
> but I'll just add that I've definitely had this use case before and feel
> like it would be really useful to have in the language. 👍
> --
> - Kent C. Dodds <>
> _______________________________________________
> es-discuss mailing list
> es-discuss at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list