mIRC Home    About    Download    Register    News    Help

Print Thread
No practical way to process $urlget() without ... #266632 06/01/20 08:37 PM
Joined: Feb 2003
Posts: 2,681
Raccoon Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,681
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.


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
Re: No practical way to process $urlget() without ... [Re: Raccoon] #266633 06/01/20 09:10 PM
Joined: Apr 2010
Posts: 938
F
FroggieDaFrog Offline
Hoopy frood
Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 938
https://stackoverflow.com/questions...html-self-contained-tags/1732454#1732454

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

Last edited by FroggieDaFrog; 06/01/20 09:25 PM.

I am SReject
My Stuff
Re: No practical way to process $urlget() without ... [Re: FroggieDaFrog] #266635 07/01/20 06:13 AM
Joined: Feb 2003
Posts: 2,681
Raccoon Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,681
Tedious. Impractical. Tomato. Potato.


Well. At least I won lunch.
Good philosophy, see good in bad, I like!