Имя | Описание |
---|---|
CachedRegexp | We cache the last regex result. This is a low-cost optimization, because we have to do an un-anchored match + check match position anyway (alternative is to do an anchored match on a string cut with substr, but that is very slow for long strings). We then don't need to recheck for any position between current position and eventual match position - result will be the same |