我爱Aspx >> Asp.Net >> 将字符串中的数字和字符分离的技术例如(the9 city)分解成(the city)和9将字符串中的数字和字符分离的技术例如(the9 city)分解成(the city)和9
串
string completeString = "the9 city";
转换完成的字符串
string stringVal = "the city";
int numericVal = 9;
aspx文件
<%@ Page language="c#" Codebehind="StringParser.aspx.cs" AutoEventWireup="false" Inherits="HowTo._20020221.StringParser" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>StringParser</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio 7.0">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
Ҷƪл˵?
呵呵,泼点儿凉水。[05-31]
密码的故事 (ST:MS,Author:Billy..[05-31]
关于字符窜和数字分离[05-31]
如何获得一个6位长随机数[05-31]
给你一个MD5算法[05-31]
简繁体转换例程[05-31]
C#小游戏-------猜数字 (solars..[05-31]
是不是这个?[05-31]
恢复URL字符串[05-31]
从csdn上看到的一些文章,好象有..[05-31]