Page 1 of 1

Get("quoted", Param1);

Posted: 21 Feb 2024 14:39
by klownboy
Would it make sense to have a get command function for obtaining a string in quotes that part of a larger string. Yes, I know it can be done in other ways, but it would seem to have some value in simply being able to:
$list_CEA_script = CEA(1,_-2); // load "Session Manager";
So, the new get function would be:
$list_CEA_script = get("quoted", $list_CEA_script); // resulting in Session Manager with no quotes
It would be easier than using trim and un-quoting here. Though there are numerous ways to accomplish this (e.g., gettoken, regex, etc)
$list_CEA_script = quote(trim($list_CEA_script,"load ;"),1);

Re: Get("quoted", Param1);

Posted: 21 Feb 2024 15:14
by admin
Why not write a user function yourself? :)

Re: Get("quoted", Param1);

Posted: 21 Feb 2024 16:51
by klownboy
Yes, no problem I can do that. I was only thinking it may be something others could use as well.

Re: Get("quoted", Param1);

Posted: 21 Feb 2024 16:53
by admin
Only others can tell. :)