[sane-devel] parsing help output of scanimage there has got to be a better way?
jffry at posteo.net
Mon Sep 18 20:15:20 UTC 2017
On 18/09/17 21:28, Jeff Sadowski wrote:
> The extremely hard part is coming up with a way to parse the stdout of
> "scanimage -h"
> Is there a good way to to this with regular expressions or something.
If you look at the source of gscan2pdf
the _parse_scanimage_output() method does what you want.
It is written in Perl, but PHP is not very different.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 833 bytes
Desc: OpenPGP digital signature
More information about the sane-devel