截取URL字符串
来源:互联网 发布:河北农业大学网络课 编辑:程序博客网 时间:2024/05/29 08:30
String EntryPage=” http://localhost:1572/Visit/Index?Featured=20”
System.Text.RegularExpressions.Regex reg=new System.Text.RegularExpressions.Regex("Featured=([^&]+)");
Uri uri = new Uri(EntryPage);
System.Text.RegularExpressions.Match match = reg.Match(uri.Query);
AdvertisingID = match.Groups[1].Value;//获取到其中20的参数值
String EntryPage=” http://localhost:1572/Visit/Index?Featured=20”
System.Text.RegularExpressions.Regex reg=new System.Text.RegularExpressions.Regex("Featured=([^&]+)");
Uri uri = new Uri(EntryPage);
System.Text.RegularExpressions.Match match = reg.Match(uri.Query);
AdvertisingID = match.Groups[1].Value;//获取到其中20的参数值
System.Text.RegularExpressions.Regex reg=new System.Text.RegularExpressions.Regex("Featured=([^&]+)");
Uri uri = new Uri(EntryPage);
System.Text.RegularExpressions.Match match = reg.Match(uri.Query);
AdvertisingID = match.Groups[1].Value;//获取到其中20的参数值
String EntryPage=” http://localhost:1572/Visit/Index?Featured=20”
System.Text.RegularExpressions.Regex reg=new System.Text.RegularExpressions.Regex("Featured=([^&]+)");
Uri uri = new Uri(EntryPage);
System.Text.RegularExpressions.Match match = reg.Match(uri.Query);
AdvertisingID = match.Groups[1].Value;//获取到其中20的参数值
0 0
- 截取URL字符串
- url 字符串截取
- 截取url地址栏字符串封装
- C#正则截取URL网址字符串
- javascript正则,截取字符串中合法URL
- C#正则截取URL网址字符串
- 截取url
- 对url字符串中域名的三种截取方式
- css截取截取字符串
- 字符串截取
- 字符串截取
- 字符串截取
- 截取字符串
- 截取字符串
- 截取字符串
- 字符串截取
- 字符串截取
- 截取字符串
- ViewPagerIndication指针的使用
- 进程间(Activity)通信
- 对埃隆-马斯克的认识
- sqlite3原生数据库简单使用
- struts2自定义拦截器和方法拦截器
- 截取URL字符串
- UKismetSystemLibrary函数库
- 关于Idea中右边的maven projects窗口找不到了如何调出来
- POI---JAVA导出Excel文件<一>创建Excel文件
- SlidingMenu侧滑
- Xml解析Pull
- ERROR:nautilus-window.c:2116:nautilus_window_get_slots: assertion failed: (NAUTILUS_IS_WINDOW (windo
- Android动画 - AndroidFillableLoaders源码分析
- 打印1到最大的N位数