Re: reg exp question
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{\(.*\)}/\1/'
--
Vote against SPAM: http://www.politik-digital.de/spam/
========================================
Oliver Elphick Oliver.Elphick@lfix.co.uk
Isle of Wight http://www.lfix.co.uk/oliver
PGP key from public servers; key ID 32B8FAA1
========================================
"For the LORD God is a sun and shield; the LORD will
give grace and glory; no good thing will he withhold
from them that walk uprightly." Psalms 84:11
Reply to: