On Fri, May 15, 2015, at 07:57 PM, Dan Morphis wrote: > That is pretty much the exact question I asked yesterday! Near as I could > deduce (without diving into the code) it doesn't look like regex's are > supported in the configuration section, only in the precondition section. > > > > On Fri, May 15, 2015 at 7:27 AM, Manny Veloso <[email protected]> > wrote: >> Hi Everyone, >> >> I’m trying to set a value with a regexp in a preset, and I can’t seem to get >> it to work. It’s this: >> >> Precondition Serial Number = 00236a48e533 >> Set /.*\.ManagementServer\.URL/ to SOME_URL >> >> Basically, I’m trying to figure out how to set a string without caring if >> it’s a tr98/tr181 device, because I couldn’t get aliases to work. This >> should match, but – does genie support regexp in this particular situation?
Right. You can't use regular expression in the configuration. But you can set two parameters (one for TR-098 and one for TR-181) and the one that doesn't exist will be silently ignored. Zaid _______________________________________________ Users mailing list [email protected] http://lists.genieacs.com/mailman/listinfo/users
