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

Re: [TSVN] Autocompletion list in the commit dialog

From: Douglas Stonham <dstonham_at_pennysaverusa.net>
Date: 2005-02-16 18:52:09 CET

I've been trying to do a basic regex for .vb files with mixed success:

(?<=([Cc]lass|[Ff]unction|[Ss]ub)[ \t]*)\b\w+(?=[ \t]*[\(\'\r\n])

... doesn't work. \r and \n only seem to match the characters r and n
respectively.

I'm relatively new to regex so I guess I'm missing something basic. How
do you match line endings with whatever form of regex TSVN uses?

I can't test directly with TSVN but the above picks out all functions/subs
followed by an open bracket. It just misses class names since they are
followed by a line ending (and returns oddities if the chars r and n
appear in the right places.

Hope that helps.

Douglas

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Wed Feb 16 18:56:18 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.