Is it possible to use a regex along with an include?

13 views
Skip to first unread message

Raymond

unread,
Aug 28, 2012, 11:17:26 AM8/28/12
to skulker2...@googlegroups.com
Hello,
     Is it possible to use something like the following in the linux.xml rule:

        <include iftrue="hostname eq 'myhost\d+'"" file="rms.xml" />

or
        <include iftrue="hostname eq 'myhost.*''" file="rms.xml" />

I have tried a couple of different formats, but have not been successful.

Simon Edwards

unread,
Aug 30, 2012, 6:07:11 AM8/30/12
to skulker2...@googlegroups.com

You could probably use "hostname =~ /myhost\d+/"

--
You received this message because you are subscribed to the Google Groups "skulker2-discuss" group.
To view this discussion on the web, visit https://groups.google.com/d/msg/skulker2-discuss/-/u0xN26LL-ZcJ.
To post to this group, send an email to skulker2...@googlegroups.com.
To unsubscribe from this group, send email to skulker2-discu...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/skulker2-discuss?hl=en-GB.
Reply all
Reply to author
Forward
0 new messages