04-09-2024 03:18 AM
We are building an AP regex for our AP's so that they can be assigned to a different site-tag.
Our AP naming convention is like this: <SER name>-<FLOOR>-<NUMBER>
We want to only match on the FLOOR number.
As far as I understood you can achieve this with non-capturing groups.
The regex would look like this:
(?:\w{2})-(00)-(?:\d{3})
The only problem is that the ? sign is not allowed in IOS-XE
Is there anyone who knows how to achieve this?
04-09-2024 06:11 AM
- Try typing Ctrl-V before the question mark ,
M.
04-09-2024 06:26 AM
okay so you mean the regex would look like this?
(Crtl-V?:\w{2})-(00)-(Crtl-V?:\d{3})
04-09-2024 06:42 AM
- Try to use the mentioned sequence as an escape character ,
M.
04-11-2024 11:49 PM
as I am not that familiar with regex so can you post an example regex for this?
Currently I have solved this like this:
^\w{2}-12-
for the 12th floor for example.
I think that is also a solution. But if you can explain how to achieve this with the capturing groups than I am still curious how to do it.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide