Resolver.addImplicitResolver

void addImplicitResolver(string tag, const Regex!char regexp, string first) pure @safe

Add an implicit scalar resolver.

If a scalar matches regexp and starts with any character in first, its _tag is set to tag. If it matches more than one resolver _regexp resolvers added _first override ones added later. Default resolvers override any user specified resolvers, but they can be disabled in Resolver constructor.

If a scalar is not resolved to anything, it is assigned the default YAML _tag for strings.

Parameters

tagTag to resolve to.
regexpRegular expression the scalar must match to have this _tag.
firstString of possible starting characters of the scalar.