[Vala] GLib.Rex Pattern
- From: Daniel Espinosa <esodan gmail com>
- To: Vala-list <vala-list gnome org>
- Subject: [Vala] GLib.Rex Pattern
- Date: Fri, 05 Apr 2013 12:02:54 -0600
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]