Comma Parsing in Max *solved!*

A simple google search regarding parsing commas from string in Max patches will reveal a boneyard of dead-ended forum posts and obscure workaround solutions, though I’m proud to say I’ve stumbled across a simple fix!

The accompanying image illustrates the use of the text object to eliminate commas from an incoming string. The challenge of this lies in the fact that commas are reserved characters in Max, making them particularly challenging to isolate. Other regex attempts to remove commas were unsuccessful, but became successful when the string was modified to have periods (manually) instead of commas, highlighting that commas were, in fact, the problematic element in the process of string parsing.

Simply sending the unchanged string into the text object and dumping the output provides us with a comma-free string!

I hope someone finds this useful!



Next
Next

On “parasoftware”