Skip to content

Main content

Ninja Variable Dollar Escape Tool

Calculate ninja variable dollar escape from explicit caller-supplied inputs.

Loading tool…

Description

Escape literal dollar signs for a Ninja-style text fragment.

Build and configuration formats have dialect-specific quoting, whitespace and escaping rules. A local prefix or character transformation handles only the declared fragment, leaving full parsing, evaluation and precedence to the consuming implementation.

Escape literal dollar signs for a Ninja-style text fragment.

When to use this tool

Use Ninja Variable Dollar Escape when inspecting the stated text or configuration fragment.

How to use the tool and how it works

  1. Enter text. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read escaped. Use the output convention below.

Escape literal dollar signs for a Ninja-style text fragment. Replace every dollar sign with two dollars and return escaped.1

Input fieldMeaning and unitsAccepted input
textTextRequired. Text; maximum UTF-16 length 8192.
Output fieldInterpretationReturned shape
escapedEscapedRequired. Text; maximum UTF-16 length 8192.
json
{
  "input": {
    "text": "a$b"
  },
  "output": {
    "escaped": "a$$b"
  }
}

Limitations and assumptions

  • This only doubles dollar signs; it does not escape spaces, colons, newlines or a complete Ninja expression.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.

Alternative or Complementary methods

Use the appropriate full parser and actual configuration context for reliable interpretation or application.

References

  1. Calculation and input contract: development/ninja-variable-dollar-escape — tool.io

Similar or alternative tools