On Wednesday, 12 April 2017 at 21:25:40 UTC, Jethro wrote:
Can regex's have variables in them? I'd like to create a ctRegex but match on runtime strings that are known at runtime.

e.g.,

auto c = ctRegex~("x{var}")

As mentioned by Ali, benchmark for your use case.

If var has common values (e.g. 1-1000). generate a ctRegex table for those values and use runtime for any that aren't in the table.

Reply via email to