Hi,

How to apply multiple regexp to the same text?

Here is my code:

<rx:regexp id="netscape4XmlRx">s/\/>/ \/>/gmi</rx:regexp>
<rx:regexp id="removeXmlRx">s/<\?.*\?>//gmi</rx:regexp>

<rx:text id="theText">
   Some text here
</rx:text>

<rx:substitute regexp="netscape4XmlRx" text="theText"/>
<rx:substitute regexp="removeXmlRx" text="theText"/>

The above obviously displays theText twice.

I tried <rx:substitute regexp="netscape4XmlRx,removeXmlRx" text="theText"/>
and it doesn't work.

I couldn't find documentation on jakarta.../regexp website, I also checked
jakarta.../oro. Please direct me if I missed the documentation.

Thank you,
Cliffano Subagio.

=====
Cliffano Subagio

http://digital.yahoo.com.au - Yahoo! Digital How To
- Get the best out of your PC!

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

Reply via email to