mIRC Homepage

No practical way to process $urlget() without ...

Posted By: Raccoon

No practical way to process $urlget() without ... - 06/01/20 08:37 PM

I would post this as a bug report, but I know that wouldn't fly. It just really feels like a bug or unfortunate limitation.

In this day and age of JSON API, which is very often a single very long string without any sort of line breaks, often much longer than 8000 bytes... there is just no practical use for features like $urlget() without the means to read and parse a file or &binary variable with lines that exceed 8000 bytes of text.

Please add &binvar input support to $regex(), $regsub() and $regsubex()

The capability of PCRE to handle strings longer than 8000 bytes is without question. We just currently have no way to send long strings to PCRE to be pulled apart by regex.

We simply can't find very much, if any, use for functions like $urlget() unless we can pass their &binvar contents to be chopped up by regex into useful digestible pieces using simple regex templates for parsing JSON (and XML, and etc).

I promise I won't ask again.
Posted By: FroggieDaFrog

Re: No practical way to process $urlget() without ... - 06/01/20 09:10 PM


In all seriousness, I do not for an instant believe that the lack of regex bvar support makes urlget impractical to use. At the very most it makes certain tasks tedious. With that said, I support adding bvar support to $regex, $regsub/ex, and $regml
Posted By: Raccoon

Re: No practical way to process $urlget() without ... - 07/01/20 06:13 AM

Tedious. Impractical. Tomato. Potato.
© 2020 mIRC Discussion Forums