正则表达式

提取spa

 Regex rg = new Regex(@"[0-9]室[0-9]厅|[0-9]居室");
                                string sOriRoomType = rg.Match(sTitle).Value;

                                Regex rgm = new Regex(@"[0-9]+平米");
                                string sArea = rgm.Match(sTitle).Value.Replace("平米","");

                                Regex rgroom = new Regex(@"[0-9]室|[0-9]居室");
                                string sRoom = rgroom.Match(sOriRoomType).Value.Replace("居室", "").Replace("", "");

                                Regex rgHall = new Regex(@"[0-9]厅");
相关文章
相关标签/搜索
本站公众号
   欢迎关注本站公众号,获取更多信息