[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 19:43:38 CET

> -----Original Message-----
> From: SteveKing [mailto:steveking@gmx.ch]
> Sent: Wednesday, February 16, 2005 12:31 PM
> To: dev@tortoisesvn.tigris.org
> Subject: Re: [TSVN] Auto-completion list
>
> Josha Foust wrote:
> > I wanted to put a '^' on the front of that to only match the beginning
> of
> > the line, but it doesn't seem to work. It would make it a lot more
> accurate
> > if I could.
>
> Is '^' really the beginning of a line? According to
> http://www.regular-expressions.info/reference.html
> it matches the beginning of the string the regex is applied to. And that
> is not the beginning of a line but the whole file.
>
> Maybe a '\r\n' would work instead?
>
> Stefan
>

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.

Thanks,
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 19:48:04 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.