> > > To reply to myself; has anyone gotten $ to work at matching the end of
> a
> > > line in MULTILINE mode? It happens with the latest test tool and TSVN
> > > nightly.
> >
> > Yes, the .vb regex I wrote uses it, seemingly successfully, although I
> did
> > hit a problem where [ab$] was not matching a or b or line end as
> expected
> > so I had to use ([ab]|$).
> >
> > Ah, I've just remembered that it also seems to put a whitespace
> character
> > (presumably \r) just before the $. Try capturing \s*$ instead of just
> $.
> > e.g. capturing (.{5})$ returns what look like groups of 4 characters.
> >
> > I always forget if . captures \r\n but that might also explain your lack
> > of capture results for ^A.*$
> >
> > Hope that helps.
> >
> > Douglas
> >
>
> In the newer test tools, it will only show groups, so the example would
> now
> be ^(A.*)$ which seems to work (maybe that was my problem before). But
> ^Attribute VB_Name = "(\w+)"$ doesn't work, while ^Attribute VB_Name =
> "(\w+)"\s*$ does.
>
> That doesn't seem like desired behavior in a Windows environment where
> \r\n
> is the standard EOL.
>
> Josha Foust
>
Has anyone looked into this? It causes you have to have to use \s*$ to
match the EOL in multiline mode because windows uses \r\n to end lines.
Josha Foust
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Mon Feb 21 19:16:42 2005