gitg/test.vala
2018-10-14 20:12:45 +02:00

15 lines
334 B
Vala
Executable file

#!/usr/bin/env vala
message ("hello world!");
Regex regexp = new Regex(".*(?:\\s|\\R)*(?P<message>(?:.|\\R)*?)\\s*$");
var m = "hello world\r\n Riti toti.\r\nasdf adfa \r\n a \r\n ";
MatchInfo minfo;
if (regexp.match(m, 0, out minfo))
{
var mes = minfo.fetch_named("message");
message(":"+mes+":");
}