<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 18, 2017 at 2:56 PM, Jeff Sadowski <span dir="ltr"><<a href="mailto:jeff.sadowski@gmail.com" target="_blank">jeff.sadowski@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Mon, Sep 18, 2017 at 2:15 PM, Jeff <span dir="ltr"><<a href="mailto:jffry@posteo.net" target="_blank">jffry@posteo.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On 18/09/17 21:28, Jeff Sadowski wrote:<br>
> The extremely hard part is coming up with a way to parse the stdout of<br>
> "scanimage -h"<br>
> Is there a good way to to this with regular expressions or something.<br>
<br>
</span>If you look at the source of gscan2pdf<br>
(<a href="https://sourceforge.net/p/gscan2pdf/code/ci/master/tree/lib/Gscan2pdf/Scanner/Options.pm" rel="noreferrer" target="_blank">https://sourceforge.net/p/gsc<wbr>an2pdf/code/ci/master/tree/lib<wbr>/Gscan2pdf/Scanner/Options.pm</a>)<wbr>,<br>
the _parse_scanimage_output() method does what you want.<br>
<br>
</blockquote></span><div>Thank you, I understand both well I should have not trouble converting it.</div></div></div></div></blockquote><div><br></div><div>Ahh, I see ignore the common options and put them in manually. clear way of getting around the issue. ;-) </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">It is written in Perl, but PHP is not very different.<br>
<br>
Regards<br>
<span class="m_-3202998020400813547HOEnZb"><font color="#888888"><br>
Jeff<br>
<br>
</font></span><br></span><span class="HOEnZb"><font color="#888888">--<br>
sane-devel mailing list: <a href="mailto:sane-devel@lists.alioth.debian.org" target="_blank">sane-devel@lists.alioth.debian<wbr>.org</a><br>
<a href="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel" rel="noreferrer" target="_blank">http://lists.alioth.debian.org<wbr>/cgi-bin/mailman/listinfo/sane<wbr>-devel</a><br>
Unsubscribe: Send mail with subject "unsubscribe your_password"<br>
             to <a href="mailto:sane-devel-request@lists.alioth.debian.org" target="_blank">sane-devel-request@lists.aliot<wbr>h.debian.org</a><br></font></span></blockquote></div><br></div></div>
</blockquote></div><br></div></div>