Get filename part only from "% with substitute()

2012-10-14 Thread Graham Lawrence
:echo substitute(@%, "\..*", "", "") :echo substitute(@%, "\([^.]\+\)\..*", "\1", "") Parameters2.html >From :reg ": echo substitute(@%, "\([^.]\+\)\..*", "\1", "") "% Parameters2.html So, how should I write this substitute command? -- Graham Lawrence -- You received this message from th

Re: Get filename part only from "% with substitute()

2012-10-14 Thread Marcin Szamotulski
On 15:25 Sun 14 Oct , Graham Lawrence wrote: > :echo substitute(@%, "\..*", "", "") > > :echo substitute(@%, "\([^.]\+\)\..*", "\1", "") > Parameters2.html > > >From :reg > ": echo substitute(@%, "\([^.]\+\)\..*", "\1", "") > "% Parameters2.html > > So, how should I write this substitute

Re: Get filename part only from "% with substitute()

2012-10-15 Thread porphyry5
On Sunday, October 14, 2012 4:59:28 PM UTC-7, coot_. wrote: > On 15:25 Sun 14 Oct , Graham Lawrence wrote: > > > :echo substitute(@%, "\..*", "", "") > > > > > > :echo substitute(@%, "\([^.]\+\)\..*", "\1", "") > > > Parameters2.html > > > > > > >From :reg > > > ": echo substitute(@%

Re: Get filename part only from "% with substitute()

2012-10-15 Thread Christian Brabandt
On Mon, October 15, 2012 16:14, porphyry5 wrote: > On Sunday, October 14, 2012 4:59:28 PM UTC-7, coot_. wrote: >> On 15:25 Sun 14 Oct , Graham Lawrence wrote: >> >> > :echo substitute(@%, "\..*", "", "") >> >> > >> >> > :echo substitute(@%, "\([^.]\+\)\..*", "\1", "") >> >> > Parameters2.html >

Re: Get filename part only from "% with substitute()

2012-10-16 Thread porphyry5
On Monday, October 15, 2012 7:27:40 AM UTC-7, Christian Brabandt wrote: > On Mon, October 15, 2012 16:14, porphyry5 wrote: > > > On Sunday, October 14, 2012 4:59:28 PM UTC-7, coot_. wrote: > > >> On 15:25 Sun 14 Oct , Graham Lawrence wrote: > > >> > > >> > :echo substitute(@%, "\..*", "", "