EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Help with streamDevice parsing HTML
From: Dirk Zimoch <[email protected]>
To: Rod Nussbaumer <[email protected]>
Cc: [email protected]
Date: Thu, 05 Mar 2009 15:18:29 +0100
Hi Rod,

Dirk Zimoch wrote:
First of all, your regexp ^MeasurePM*([0-9.]+) requires that the HTML input starts with MeasurePM, which is not the case. The ^ at the beginning is the problem. It does not refer to the beginning of a line but of the parsed input. That is all input minus the text that has already been parsed before. In your case it is the complete reply from the web server including the HTTP header "HTTP/1.0 ..." which a browser does not show.

According to the PCRE documentation, you can use ^ to match the beginning of a line (the gap between \n and the next char) by enabling multi-line mode: /(?m)^.../
I have not tested that yet.

Dirk

--
Dr. Dirk Zimoch
Paul Scherrer Institut, WBGB/006
5232 Villigen PSI, Switzerland
Phone +41 56 310 5182

References:
Help with streamDevice parsing HTML Rod Nussbaumer
Re: Help with streamDevice parsing HTML Dirk Zimoch

Navigate by Date:
Prev: Re: Help with streamDevice parsing HTML Dirk Zimoch
Next: Re: Help with streamDevice parsing HTML Rod Nussbaumer
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Help with streamDevice parsing HTML Dirk Zimoch
Next: Re: Help with streamDevice parsing HTML Dirk Zimoch
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 31 Jan 2014 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·