![](https://secure.gravatar.com/avatar/e84b70344031e0a392bb26fcbe232abb.jpg?s=120&d=mm&r=g)
Thought about this right after hitting send, if you want to do away with the notregexp so you can match on something else in the expression as well it would be more efficient to do
hostname regexp ^[^0-9]
On Nov 14, 2016 5:02 PM, "Ed Iwanski" ed@iwanski.com wrote:
hostname notregexp ^[0-9]
On Nov 14, 2016 4:39 PM, "Michael" obslist@smarsz.com wrote:
When you have a problem that can be solved with regex, you now have two problems...
I'm having trouble making a fairly basic regex string match in the alerting system.
I want to not match any devices that have hostnames starting with a digit. Easy, right.
I think my problem is not finding the right bracing to build the syntax within the ui.
Things I have tried that don't seem to work:
hostname notregexp \b\d.* hostname notregexp /\b\d.*/ hostname notregexp /(\b\d.*)/ hostname notregexp '/\b\d.*/' hostname notregexp "\b\d.*" hostname notregexp "/\b\d.*/" hostname notregexp '\b\d.*'
Has anybody figured out what the secret handshake is?
Michael _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium