[Vala] GLib.Rex Pattern



I want to set a static string to a class with a GRex pattern.

Is this supported by Vala?

I'm using:

class Ip : Object  {
        public static string PATTERN="(([0-2]?[0-5]{1,2})|([0-1]\d\d)|(\d
\d))\.(([0-2]?[0-5]{1,2})|([0-1]\d\d)|(\d
\d))\.[0-2]?[0-5]{1,2}\.(([0-2]?[0-5]{1,2})|([0-1]\d\d)|(\d\d))"
}

On compile I get error for invalid scape sequence.
-- 
Daniel Espinosa <esodan gmail com>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]