Thank you for your replies.
I could modify my script with your simpler regex so that it matches now.
If the con1|33 is unique, is a good question. The strongswan guys haven't replied yet. At least, this ID appears only for one login at a time. I don't know when it is reset.
- Chris