🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.bbs.comp.lang.java
Article #19904

Re: ����ж�һ��String���Ƿ������ֵ��ַ�

#19904
From: ������Ե�����
Date: Sat, 27 Dec 2003 06:43
22 lines
1563 bytes
cardCode����ǰ�涨��Ҫ����String

//�Ǻǣ�ż��ǰд�ķ���˷��߼��жϵ�һ������

�� �� truecolor (������Ե�����) �Ĵ������ᵽ: ��
: ���������̫���ص���
: ����ʹ��������ʽ
: [^0-9]
:     Pattern p = null; //������ʽ
:     Matcher m = null; //�������ַ�
:     p = Pattern.compile("[^0-9]");
:     m = p.matcher(cardCode);
:     if (m.find()){
:       //������ֵĴ��?��
:     }
: .................������ʡ�ԣ�

--

���㿴�Ǹ�����Ա�������һ����������
 
�� ��Դ:���Ұ��Ͽ�վ bbs.nankai.edu.cn��[FROM: 210.76.108.158] 
Technical Details
Message-ID: <4A1fl6$9WU@bbs.nankai.edu.cn>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeeds.sol.net!ngpeer.news.aol.com!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!news.happynet.org!NanKai

Show Full Headers
Complete Article Headers
X-Google-Language: Chinese,GB
X-Google-Thread: f6cb0,360c8c7a672d89bc
X-Google-Attributes: gidf6cb0,public
X-Google-ArrivalTime: 2003-12-26 22:44:30 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeeds.sol.net!ngpeer.news.aol.com!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!news.happynet.org!NanKai
From: truecolor.bbs@bbs.nankai.edu.cn (������Ե�����)
Newsgroups: cn.bbs.comp.lang.java
Subject: Re: ����ж�һ��String���Ƿ������ֵ��ַ�
Date: 27 Dec 2003 06:43:45 GMT
Organization: �Ұ��Ͽ�վ
Message-ID: <4A1fl6$9WU@bbs.nankai.edu.cn>
X-Filename: Java/M.1072507350.A
Lines: 22