[PATCH 1/5] allow optional quotes in +CREG: <stat>, "<lac>", "<ci>" (GSM 07.07 CREG=2 unsolicited) pattern; add testcase for Thuraya XT

Aleksander Morgado aleksander at aleksander.es
Thu Feb 11 14:25:00 UTC 2016


On Thu, Feb 11, 2016 at 1:45 PM, Thomas Sailer
<sailer at sailer.dynip.lugs.ch> wrote:
> +#define CREG3 "\\+(CREG|CGREG|CEREG):\\s*0*([0-9]),\\s*(?|([^,\\s]*)|(?:\"([^\"]*)\"))\\s*,\\s*(?|([^,\\s]*)|(?:\"([^\"]*)\"))"

Why not just make the single quote characters optionals? (instead of
providing two options, with and without quotes).

-- 
Aleksander
https://aleksander.es


More information about the ModemManager-devel mailing list