Forum: CFEngine Help
Subject: Re: regcmp() not working correctly?
Author: Authority
Link to topic: https://cfengine.com/forum/read.php?3,27556,27558#msg-27558

It's matching the "on" in haldaemon.

Perhaps try setting a word boundary in your regex like so: .*\bon\b.*

>From my handy "Regular Expression Pocket Reference":
\b Word boundary; position between a word character (\w) and either a non-word 
character (\W), the start of the string, or the end of the string.

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to