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

[TSVN] regex help

From: SteveKing <steveking_at_gmx.ch>
Date: 2005-02-17 19:37:04 CET

Hi guys,

Seems I haven't mastered the regexes yet. I'm trying to improve the
issuetracker specs to use only one regex instead of two, but my test
doesn't work.

The test log message:
this is a test logmessage: issue 2222\nIssue #456, 678, #901, #100 #456
and the regex string which _should_ match only the issue numbers 2222,
456, 678, 901, 100:
[Ii]ssue #?([0-9]+)(?:(?:, #?([0-9]+))+)?

But it only returns 2222, 456, 100 in the groups - it leaves out 678 and
901! Can you please help me out here and explain why this happens?

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Thu Feb 17 19:37:56 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.