Finding info in textareas
I am trying to read something like the following in a textarea
There are other types of records but I am only interested in the ones which start with "|Note|". The field after "Pos:" will be compared to members of:
If there are other fields after Pos:, there will be a "|" or "!" instead of the end of the line.
var offsets = [ "n-6", "#-6", "n-5", "#-5", "n-4", "n-3", ... ]
I was able to run the split("\n") command against the textarea to break it into separate lines, but I couldn't search those lines.
I hope to add this as a new feature to ttr.htm.