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

RE: [TSVN] Auto-completion list

From: Josha Foust <jfoust_at_mankowindows.com>
Date: 2005-02-16 20:24:32 CET

> -----Original Message-----
> From: SteveKing [mailto:steveking@gmx.ch]
> Sent: Wednesday, February 16, 2005 12:59 PM
> To: dev@tortoisesvn.tigris.org
> Subject: Re: [TSVN] Auto-completion list
>
> Josha Foust wrote:
>
> > That reference says:
> > Matches at the start of the string the regex pattern is applied to.
> Matches
> > a position rather than a character. Most regex flavors have an option to
> > make the caret match after line breaks (i.e. at the start of a line in a
> > file) as well.
> >
> > Most tools with regex I have worked with apply regex to lines only.
> That
> > makes using '^' and '$' easy since you can ignore the complications of
> > different OS line endings. Multi-line matching is the exception in my
> > experience. I think Perl has a special option for multi-lines matches?
> >
> > I can certainly work with it that way, however.
>
> Well, GRETA allows certain flags as well. And there's one called
> MULTILINE which would do exactly that (make ^ match the beginning of a
> line).
>
> So what shall I do? Use that flag or leave it? What's better?
>
> Stefan
>

Err, actually I wanted to say pretty much the opposite of what I did. I was
using MULTILINE to mean having to use \r\n to match something across
multiple lines. The standard definition of that appears to be to
automatically match the beginning and ending of lines with ^ and $.

So I think we should use the MULTILINE option. Matching autocomplete
entries is going to be much more common on a single line.

Oh, and the new test tool doesn't seem to match anything with a ^ as the
first character of the regexp.

Josha Foust

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