[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: [TSVN] regex help

From: Douglas Stonham <dstonham_at_pennysaverusa.net>
Date: 2005-02-17 22:27:23 CET

On Thu, February 17, 2005 1:16 pm, Eric J. Smith said:
> [Ii]ssue:?(?:(?:,\s*|\s*,?\s+[Aa]nd\s+|\s+)\#?(\d+))+
>
> This should capture all of these:
>
> issue: 1
> issue #2
> Issue #3,4,5
> Issue 6 and 7
> Issue #8,9, #10, #11 , and #12

It does 'capture' those, but it only returns one of the numbers (or the
whole string depending on if you look at group 0 or the other groups).

e.g. the last one returns "12"

BTW, I'm also using the .net regex.

Douglas

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Thu Feb 17 22:28:01 2005

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.