Forum Discussion
khawasli_50856
Mar 09, 2011Nimbostratus
Problem with charset and rewriting HTML content
Hi,
I have been facing an issue where Arabic characters come out all funny (corrupted basically) after rewriting some URIs and javascript events in my HTML (not using a streaming profile). I have...
khawasli_50856
Mar 10, 2011Nimbostratus
Hi hoolio
Thank you for the reply.... the streammatch event is a great idea thank you very much fior this great tip..... ut the issue I am facing is more generic, I have faed more than one issue due to the streaming profile limitation with regex.... one example is that I once has a string that looked something like
Var somevariable. = "tessting"
If I want to rewriteit with
/var[ ]{5,}[a-z]+[ ]{5,}=[ ]+"[a-zA-Z]"/var somevariable = "testing"
This will not match because the string I am trying to match is too long that the stream would not detect such length (I am probably wrong regarding this assumption but I have faced this more than once where I cannot match long strings where the same regex works with buffering technique)
Another simple example is the case insensative :) a simple and silly as it may sound but it is such a headache that I cannottell regex to match without case sensativity.
I think that the good old buffering techniqu must not be replaaced with streaming streaming is good in certain situations but in complex cases (like writing uri exnryption) we have to use bufferin what do you think hoolio?
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects