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  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  <20232024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  <20232024 
<== Date ==> <== Thread ==>

Subject: Re: process multiple lines with streamdevice
From: Gerrit Kühn via Tech-talk <tech-talk at aps.anl.gov>
To: Gerrit Kühn via Tech-talk <tech-talk at aps.anl.gov>
Date: Fri, 3 Nov 2023 12:05:24 +0100
Am Fri, 13 Oct 2023 16:13:18 +0200
schrieb Gerrit Kühn via Tech-talk <tech-talk at aps.anl.gov>:

> > Two things to keep in mind:
> > 1. Once %/regex/ has skipped something, there is no way back. Thus if
> > you have multiple of those in one protocol, the order must stay fixed.

> Yes, that will be the case. Right now, I just try to get this to work at
> all, so I only try to match one of the pairs for starters. Once this
> works, the others should hopefully be easy to add.

So much about the "easy" part. I tried to match two groups now (and get
the first into a different record stored in $2) like this:

in
"%.1/uid=\$1.*?connected-uid=(\$2)([-a-zA-Z0-9]+)/
%.1/.*?device-identifier=([-a-zA-Z0-9]+)/";

This basically passes manual testing on regex101 (matches two groups as
desired), but fails with streamdevice with "input does not match format". I
guess I am doing soemthing wrong when trying to parse two regex into
different channels. Is there an example somewhere how to do this properly?


cu
  Gerrit

Attachment: smime.p7s
Description: S/MIME cryptographic signature


Replies:
Re: process multiple lines with streamdevice Gerrit Kühn via Tech-talk
References:
process multiple lines with streamdevice Gerrit Kühn via Tech-talk
Re: process multiple lines with streamdevice Zimoch Dirk via Tech-talk
Re: process multiple lines with streamdevice Gerrit Kühn via Tech-talk
Re: process multiple lines with streamdevice Zimoch Dirk via Tech-talk
Re: process multiple lines with streamdevice Gerrit Kühn via Tech-talk

Navigate by Date:
Prev: record with constant input link Gerrit Kühn via Tech-talk
Next: Re: process multiple lines with streamdevice Gerrit Kühn via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  <20232024 
Navigate by Thread:
Prev: RE: [EXTERNAL] Re: process multiple lines with streamdevice Baily, Scott A via Tech-talk
Next: Re: process multiple lines with streamdevice Gerrit Kühn via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  <20232024 
ANJ, 03 Nov 2023 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·