asp拆分字符串问题
如果用asp把“腾讯问问”这组字符串拆分为“腾-讯-问-问”,就是给字符串中每个汉字中间加个固定字符。
VBScript code:
s="腾讯问问"
Set re = New RegExp
re.Pattern = "(.){1}"
re.global=True
a = re.Replace(s, "$1-")
response.write Left(a, Len(a)-1)
VBScript code:
<%
dim str,i,str1
str="腾讯问问"
str1=""
for i=1 to len(str)
str1=str1&mid(str,i,1)
if i<len(str) then str1=str1&"-"
next
response.write(str1)
%>
相关问答:
本人有三年开发经验,现在找工作(厦门),,,有意者请联系QQ:523054271
1.5年工作经验找工作 他要多少 我要一半~~
别说三年的了...就是5年的也一抓一大把.....
俺需要用asp+access做一个进销存软件,您能做 ......
原先有一个项目是用asp写的,因为系统扩展,我想添加一些模块或网页,想用asp.net写,然后在asp中redirect到aspx文件中,请问是否可以做到,如何在IIS中进行配置。
这样可以省去很多工作量,因为系统以前是别人写的 ......
<?php
if($_SERVER['HTTP_REFERER']!=''){
@header("Content-type:image/jpeg");
echo file_get_contents("xlight.jpg");
}
else{
@header("location:ht ......
前段时间碰到一道面试题如下:
test.aspx页面有如下代码:
Response.Write(Test.GetDate());
Test类如下:
public class Test
{
static string dt="";
public static s ......
哪位大哥有没有ASP.NET中利用Cookies实现用户自动登录的代码...谢谢了...越详细越好....
什么意思?自动登录?
mark 貌视是存储cookies 我也对cook比较迷糊 关注下
既然你知道用cookies自己动动大脑多好! ......