Here's a sample of that raw data:
Code: Select all
" [39;49m[0m-[39;49m[0m[32m[4zMXP<send href="goto 3b"MXP>$[4zMXP</sendMXP>[39;49m[0m-[39;49m[0m
[39;49m[0m|[39;49m[0m [39;49m[0m|[39;49m[0m
[39;49m[0m[31m+[39;49m[0m[1;33m[4zMXP<send href="goto 3c"MXP>@[4zMXP</sendMXP>[39;49m[0m-
[39;49m[0m[32m[4zMXP<send href="goto 4c"MXP>$[4zMXP</sendMXP>[39;49m[0m
[39;49m[0m[31m+[39;49m[0m [39;49m[0m[31m+[39;49m[0m\[39;49m[0m
[39;49m[0m[36m[4zMXP<send href="goto 5d"MXP>*[4zMXP</sendMXP>[39;49m[0m
"
Code: Select all
[4zMXP<send href="goto 3c"MXP>@[4zMXP</sendMXP>
Here's the regex for capturing the mxp lines
Code: Select all
"%[4zMXP\<send href=\"goto .+\"MXP>.%[4zMXP\</sendMXP\>"
But it seems doable and there are probably easier ways than what I'm thinking right now, but seems like there should be a much much easier way to simply paste() this data in directly from gmcp and have the client parse it just like it parses everything else normally.. I feel like I'm missing something really simple.