Re: reg exp question

1999-10-20 Thread Dave Sherohman
E.L. Meijer \(Eric\) said: > If `Foo' does contain `}' (like \textsc{\Foo{\Bar}}) then I don't know > how to handle that. IIRC, ORA's Mastering Regular Expressions has an example along these lines of how to capture parentheses, with nesting both possible and respected, but it's pretty ugly. If yo

Re: reg exp question

1999-10-20 Thread E.L. Meijer \(Eric\)
On Wed, Oct 20, 1999 at 10:56:12AM +0100, Oliver Elphick wrote: > Shao Zhang wrote: > >Hi, > > I have very limited reg exp knowledge, but I need this badly... > > > > Could someone tell me how to write a sed script to replace the > > following string? > > > > From string \text

Re: reg exp question

1999-10-20 Thread Oliver Elphick
Shao Zhang wrote: >Hi, > I have very limited reg exp knowledge, but I need this badly... > > Could someone tell me how to write a sed script to replace the > following string? > > From string \textsc{Foo} to Foo > > Thanks for your help. sed -e 's/\\textsc{\(.

reg exp question

1999-10-20 Thread Shao Zhang
Hi, I have very limited reg exp knowledge, but I need this badly... Could someone tell me how to write a sed script to replace the following string? From string \textsc{Foo} to Foo Thanks for your help. Shao. -- _