tags:

views:

81

answers:

3

I have of word documents filled with this type of lines

  1. word  = home
  2. fig       = tree
  3. car                  = yatch

I want to select the white space between the end of the first word and the = sign. There is a search and replace feature in word but I can't figure out the regex that will select those spaces. Any help is appreciated.

A: 

You can try s/\ +=/=/g : which means, 1 space or more plus '=' subtitute it by only '='.

Arkaitz Jimenez
A: 

Something like /.+?\w*?=/ should get close for you.

Myles
+2  A: 

Word? You mean, Microsoft(r) Word(tm)? Maybe this

> @=

replace with "="

stereofrog