Forum Discussion
Darren_21048
Mar 18, 2011Nimbostratus
Stream::expression & case insenitivity
I am trying to create a bit of a badword list and as a test intend to use this iRule. It works fine but I'm struggling to add case insensitivity to the mix. I've tried wrapping [string tolower] round...
hooleylist
Mar 18, 2011Cirrostratus
Hi Darren,
Unfortunately, the stream filter is case sensitive and doesn't accept the (?i) notation to set the expression as case insensitive. As a workaround, you can use character classes to match both cases:
STREAM::expression "@[bB][aA][dD][wW][oO][rR][dD]@*****@"
I think it would be useful for there to be a "case sensitive" checkbox on the stream profile (or via an iRule flag). If you agree, could you open a case with F5 Support and ask for an enhancement? If you end up doing this, could you reply with the RFE ID so others can reference it?
Thanks, Aaron
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