View Single Post
 
Old 01-18-2014, 07:58 PM
zhangzujin361 zhangzujin361 is offline Windows XP Office 2003
Novice
 
Join Date: Jan 2014
Posts: 2
zhangzujin361 is on a distinguished road
Default How to replace this word file using wildcard

Suppose I have a word file with content as follows:

\sed{a}\sed{b}\sed{sfwere}\sed{sfwerwerwefd}\sed{s fwerwe}\sed{werwe}
\vlm{n}\vlm{p}\vlm{w}\vlm{serw}\vlm{swer}
\beex \bea f(t)=g(t)\eea\eeex

\beex \bea wrwerwerwerwe\eea\eeex

I need to repalce them as follows:

\sed{a} is replaces to \left\{a\right\}
\sed{b} is replaces to \left\{b\right\}
\sed{sfwere} is replaces to \left\{sfwere\right\}

etc.

\vlm{n} is replaces to \lim_{n\to\infty}
\vlm{p} is replaces to \lim_{p\to\infty}
\vlm{w} is replaces to \lim_{w\to\infty}

etc.

\beex \bea f(t)=g(t)\eea\eeex

is replaces to

\begin{equation}\begin{array} f(t)=g(t)\end{array}\end{equation}


How can I realize it?

Last edited by zhangzujin361; 01-18-2014 at 07:59 PM. Reason: to be more concise
Reply With Quote