New regex: Find?

Joel C. Salomon joelcsalomon at gmail.com
Mon May 4 18:03:43 PDT 2009


dsimcha wrote:
> Is there an *efficient* way to simply test whether a given string contains a
> given regex in the new std.regex?  Using match() and testing for empty works,
> but this apparently triggers a bunch of unnecessary heap allocation.  If not,
> is this a universal enough feature to warrant an enhancement request?

You mean to search for a regex match without constructing the regex
engine?  Good luck with that.

—Joel Salomon



More information about the Digitalmars-d mailing list