This is standard regex format. Here's a breakdown of each part:
-
(1[89]|2[0-2]):
-
1[89] matches either 18 or 19 (the 1 is followed by either 8 or 9).
-
2[0-2] matches 20, 21, or 22 (the 2 is followed by 0, 1, or 2).
-
The | acts as an OR, so this part matches 18, 19, 20, 21, or 22.
-
\.:
-
The backslash \ escapes the dot, so it matches a literal period character.
-
.*:
-
The dot . matches any character except a newline.
Meaning, any Junos version of 18.X, 19.X, 20.X, 21.X, or 22.X
------------------------------
Kyle Baxter
------------------------------
Original Message:
Sent: 07-09-2025 16:46
From: LEEBAHI
Subject: Apstra Device Profile for Juniper interpretation
Hi everyone,
I am trying to understand how JUNOS version is listed in device profile.
Example: Device profile for vQFX shows following for Version under Selector field:
Version: (1[89]|2[0-2])\..*
How should we interpret this ? I know JUNOS version is listed here .
Much appreciated!!
------------------------------
Be kind!!
------------------------------