Having some trouble with regexp. My XML file loaded to actionscript removes all spaces (automatically trims the text). So I want to replace all SPACE with a word so that I can fix that later on in my own parsing.
Here's examples of how the tags I want to adjust.
<w:t> </w:t>
<w:t> Test</w:t>
<w:t>Test </w:t>
This is the result I want.
<w:t>%SPACE%</w:t>
<w:t>%SPACE%Test</w:t>
<w:t>Test%SPACE%</w:t>
The closest result I got is <w:t>\s|\s</w:t>
Biggest problem is that it changes all spaces in the XML file that corrupts everything. Will only change inside w:t nodes but not destroy the text.
<w:t> Test Test </w:t>? Should all three spaces be replaced?