On 11/10/2007 12:33, Keith Bates wrote:
Hello,

Someone has sent me one of those evil files in the Mcrosoft 2007 docx
format.


Failing that, can someone tell me how to use regular expressions to
remove the formatting commands in the basic xml file i.e.
<I want to remove anything between these brackets>

No matter how long I look at the help file my brain just does not get
reg ex !

Thanks

If this would work for you the solution is simple *providing* you can open the xml file in a text editor (vi ???) that supports regular expressions.

Change the regular expression "<.*>" (that's less-than, dot, asterisk, greater-than, without the quotes) to nothing (a null string). The less-than and greater-than characters are interpreted literally; the dot star is interpreted as "any number, including zero, of any character".

However, I'm not sure if this is a good idea as it will lose *all* the formatting from the document. If that's OK with you then ...

--
Harold Fuchs
London, England
Please reply *only* to users@openoffice.org

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to