mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-11-04 23:34:39 +00:00
15 lines
334 B
Vala
Executable file
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+":");
|
|
}
|
|
|