Skip to main content
Version: 2.0

String Manipulation

Raw data is not always ready for display. You might need to capitalize names, extract abbreviations, or clean up punctuation.

Case Conversion Modes

These "Mode" commands affect all subsequent fields until changed or reset.

CommandNameDescriptionExample InputExample Output
mplProof ReadFirst letter Upper, rest lower.JOHN DOEJohn doe
mhuHeading UpperAll Uppercase.John DoeJOHN DOE
mhlHeading LowerAll Lowercase.John Doejohn doe
mduData UpperFirst letter of every word Upper.history of artHistory Of Art
mdlData StandardResets formatting to default (as entered).--

Usage: mhu, v10, mpl (Prints v10 in Uppercase, then switches mode to Proof).

Substring Extraction

You can extract parts of a field using offsets and lengths.

  • Syntax: vTag*Offset.Length
CodeMeaningExample (v10="2024-12-25")Result
*nSkip n charactersv10*512-25
.nTake n charactersv10.42024
CombinedSkip and Takev10*5.212

Text Searching (s function)

Searches for a substring within a field. Returns the position of the string (or 0 if not found).

  • Syntax: s('search_term', vTag)
  • Usage in IF: if s('Physics', v245) > 0 then ...