Converts a string into dotcase format by replacing spaces, dashes, underscores, and other non-word characters with periods (.). Use it when you need key-like values separated by dots.
-
Convert a category label to dotcase
{{dotcase record.category.label}}Input:
{ "record": { "category": { "label": "a-b-c d_e" } } }Output:
a.b.c.d.e
-
Convert descriptive text
{{dotcase record.section}}Input:
{ "record": { "section": "Customer Profile Data" } }Output:
customer.profile.data
Tip
-
All separators normalize into a single
.. -
Non-string datatype inputs (like numbers or boolean) are converted to strings before processing. Arrays of primitive types (like strings or numbers) are converted into a comma-separated string before processing. If inputs are objects or object arrays, the output will be unusable.
-
The helper splits camelCase/PascalCase before joining with dots (e.g.,
getUserProfile→get.user.profile). -
Useful for configuration keys, settings names, or when working with nested key formats.
-
Consecutive non-word characters collapse into one period.