You have to create a new text variable using the results of the first regexp.
Then use that text variable with the second one.
Like this:
<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:text id="nextText"><rx:substitute regexp="netscape4XmlRx"
text="theText"/></rx:text>
<rx:substitute regexp="removeXmlRx" text="nextText"/>
Regards,
Glenn
Cliffano Subagio wrote:
> 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]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>