Re: [Vala] Regex Question



\* is an invalid escape sequence.

Try

       var regex = new Regex ("""/\*.*?\*/""");

"Vala offers a feature called verbatim strings. These are strings in
which escape sequences (such as \n) won't get interpreted."
http://live.gnome.org/Vala/StringSample



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