求大虾指点个C#字符串截取问题,谢谢 "select * from table1"如果我想截图上面的字符串,截取内容如下:1、从右开始截取2、取到第一个空格位置的所有内容(即取上面sql语句的表名table1) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 string str = "select * from table1"; int index = str.LastIndexOf(' '); string result = str.Substring(index + 1); Console.WriteLine(result); C#怎样像QQ聊天那样快捷键弹出窗口!求例子! C# 输入控件TextBox样式问题 初学喜傻扑,严重请教!!! 求助:页面数据post及request的问题 winfrom怎么利用http post发送请求 用户代码未处理nullreferenceexception windows service问题 关于combox的问题!是不是bug?还是我搞错呢?在线等!! 使用水晶报表的C#程序,在其它机子上运行时找不到keycodeV2.dll,如何解决? vb与C#结合问题 关于word c# word2007 部分功能区的隐藏
string str = "select * from table1";
int index = str.LastIndexOf(' ');
string result = str.Substring(index + 1);
Console.WriteLine(result);