Pergunta

:%s/早上好/good morning/g can substitute 早上好 with good morning, but :%s/\(早上好\s+\)\+/good morning/g can not substitute 早上好 早上好 with good morning .
How can i write the right regular expression in vim?

Foi útil?

Solução

Try this:

%s_\(早上好\s*\)\+_good morning_gi   
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top