using System;
using System.Text.RegularExpressions;
public class Test
{
public static void Main()
{
Regex regex = new Regex(@"([\w\W]+)\s(\d+)");
var match = regex.Match("R 25 de março 200");
if (match.Success) {
string endereco = match.Groups["1"].Value;
string numero = match.Groups["2"].Value;
Console.WriteLine(endereco);
Console.WriteLine(numero);
}
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uVGV4dC5SZWd1bGFyRXhwcmVzc2lvbnM7CgpwdWJsaWMgY2xhc3MgVGVzdAp7CglwdWJsaWMgc3RhdGljIHZvaWQgTWFpbigpCgl7CglSZWdleCByZWdleCA9IG5ldyBSZWdleChAIihbXHdcV10rKVxzKFxkKykiKTsKICAgICAgICAgICAgdmFyIG1hdGNoID0gcmVnZXguTWF0Y2goIlIgMjUgZGUgbWFyw6dvIDIwMCIpOwogICAgICAgICAgICBpZiAobWF0Y2guU3VjY2VzcykgewogICAgICAgICAgICAgICAgc3RyaW5nIGVuZGVyZWNvID0gbWF0Y2guR3JvdXBzWyIxIl0uVmFsdWU7CiAgICAgICAgICAgICAgICBzdHJpbmcgbnVtZXJvID0gbWF0Y2guR3JvdXBzWyIyIl0uVmFsdWU7CiAgICAgICAgICAgICAgICBDb25zb2xlLldyaXRlTGluZShlbmRlcmVjbyk7CiAgICAgICAgICAgICAgICBDb25zb2xlLldyaXRlTGluZShudW1lcm8pOwogICAgICAgICAgICB9Cgl9Cn0=