jiake0504 发表于 2013-2-7 14:50:47

javaScript正则表达式提取字符串中字母、数字、中文

<DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>javaScript正则表达式提取字符串中字母、数字、中文</title></head><body><input type="text" id="oText" value="4000没dfgdffg拭找34554imiadf测拭3453534" size=100><br/><input type="button" value="提取数字" ><input type="button" value="提取中文" ><input type="button" value="提取英文" ><input type="button" value="还原" ><br><input name="s" size=100 value="4000没dfgdffg拭找34554imiadf测拭3453534sfgsf哈哈哈"><br/><input type="button" value="TEST" ><br</body></html>
页: [1]
查看完整版本: javaScript正则表达式提取字符串中字母、数字、中文