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
<2023>
2024
- 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
<2023>
2024
|