Forum Academy Marketplace Showcase Pricing Features

Syntax Checking an Input for CSVs

One of the inputs I’m taking should be a list of comma separated values. For example:

“value 1”, “value 2”, “value n”

I’d like to be able to syntax check the input but I’m struggling with the best way to do this. There are two areas where I would like to do this:

  1. A single row list of values.

  2. A multi-line input where there are essentially multiple rows of values.

I’m trying to keep the app from blowing up if the syntax of the input isn’t correct (e.g. user missed a quote or comma), so it’s probably important that I can check the syntax in both of these cases. I appreciate any help!!

Eric