>From what I can see your regex is the same as Attiva.*XXL[1], so why not just that one?
Or what pattern are you trying to match exactly? On 02/26/16 04:39, Артур Истомин wrote: > Suppose I have file with next lines among others: > > Omsa Attiva 40 cioccolato 2 > Omsa Attiva 40 blue XXL > Omsa Attiva 40 milk S > Omsa Attiva 40 sierra XXL > Omsa Attiva 40 nero M > Omsa Attiva 40 nero XXL > > I need to find lines, where size is XXL. I can do it with "Attiva\&.*XXL" in > vim > but it doesn't work in nvi. Are there any general way to do it in both > editors? > > Thank you. > [1] use both /Attiva\&.*XXL and /Attiva.*XXL in vim with :set hlsearch