Tim Starling wrote:
\sin -> sin, etc.
...
\! ->
There you go. If you're too busy, I might even
consider coding it. Does PHP
have regular expressions the same as Perl?
This too is a wheel that's already been invented.
Ask on comp.text.tex about TeX to ASCII converters.
-- Toby