On 19/03/14 16:20, Nuriel Shem-Tov wrote: > I would like to know how is it possible to escape round brackets in xCat > tables when using regex? > > For example, in the switch table we tried escaping the relevant brackets: > "compute","switch01","|node(\d+)|ifc($1+0) \(Slot: 1 Port: ($1+0)\)|",,,, > But it results in: "ifc1 \(Slot: 1 Port: ($1+0)\)" > > And we wanted it to become: "ifc1 (Slot: 1 Port: 1)" Will it not just work without the brackets escaped? I think it's just a Perl substitution so the brackets don't have any special meaning in the second part.
------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech _______________________________________________ xCAT-user mailing list xCAT-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xcat-user