RE: match(), regexp problem
> > 012345678...
> > let z="a[q]x[qq]"
> > echo matchstr(z, '\[*\]$')Where did my . go ??
> > returns ']' which is indeed the 8th char.
> > What did it do with the rest of my regexp?
> > I wanted to get all between [...], closing
> > bracket to be last on the line, so I expected
> > '[q]x[qq]'.
> Possibly what you want is
> echo matchstr(z,'\[.*]$')
I knew I must not see something obvious!
> Then I suppose you wantBeauty, thanks!
> echo matchstr(z,'\[[^*]$')