I'm trying to edit my prefixes' AS path regex in BGPmon, and when I add a
'\s' in the Regular expression field, upon save, the '\' is stripped.
Is this expected behavior?
The workaround is to insert a '\\s' instead, but one needs to remember to
do this on every edit, and I tend to forget which results in panicking the
others on our team with false positives.
-cjp
I'm not familiar with BGPmon but your symptoms sounds like typical programming issue.
The '\' is stripped probably due to a "Stripslashes" function in the code. So by doing double '\\' you kinda
trick the code into only doing the first one.
I don't really know of any way around this.
Hi Christopher,
.-- My secret spy satellite informs me that at 11-12-21 9:06 AM Christopher J. Pilkington wrote:
I'm trying to edit my prefixes' AS path regex in BGPmon, and when I add a
'\s' in the Regular expression field, upon save, the '\' is stripped.
Is this expected behavior?
The workaround is to insert a '\\s' instead, but one needs to remember to
do this on every edit, and I tend to forget which results in panicking the
others on our team with false positives.
I believe this should be fixed now, please try again.
Contact me directly (andree at bgpmon.net) if the problem persists or if you have any other bgpmon.net questions.
Alternatively, as a replacement for \s you can also just use a white space
for example: (6327|13768|852) 271$
Cheers,
Andree