NNTP-Posting-Date: Tue, 05 Apr 2011 03:09:28 -0500 Date: Tue, 05 Apr 2011 09:09:28 +0100 From: bugbear User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20101213 Fedora/2.0.11-1.fc13 SeaMonkey/2.0.11 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Re: regex capability References: <8vun3sFs1lU1@mid.individual.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Lines: 15 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-4t0a4bKjDO+24KkyFZEBu7gKOOqTtJUbK4f2rGHVKXIqiloGqY9kXoW2VV/yO0EkcAPcnauM/Zf/Kmx!I+SfBt0UliFTtYN+VvysWrOlvZ09nRWwLT3zroYo/qX13QDF0V/+Eoe+9bzi1a56cDyJ+g7nknoV!X45NIKRrGMFCOyZSnponqB2bsA== X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 1605 Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.stben.net!border3.nntp.ams.giganews.com!Xl.tags.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!local2.nntp.ams.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:2881 markspace wrote: > On 4/4/2011 1:13 PM, Robert Klemme wrote: > >> if ( m.matches() ) { >> for (m = number.matcher(m.group(1)); m.find();) { >> int x = Integer.parse(m.group()); >> } > > > Why re-invent the wheel? For Integers, you're quite right. But the more general question of repeated patterns is of interest. BugBear