Forum Discussion
d2_21508
Oct 06, 2015Nimbostratus
is it possible to use regex within switch block?
Hello!
Is it possible to use regular expressions within switch block? My scenario:
a.domain.com a.domain.net
So different TLDs. Now I want to write iRule that will handle both 'com' and 'net...
d2_21508
Nimbostratus
@Stanislas: that worked
@Hannes Rapp: will try regex, thanks. About converting strings to lowercase. "Every web browser automatically does this conversion for clients", what about shell scripts accessing URLs? (wget/curl/python/perl etc). I don't think all libraries are doing such conversion on the fly. Why using this syntax is incorrect?
Hannes_Rapp
Oct 06, 2015Nimbostratus
Syntax is good, but general logic is bad. Please find the modified answer below.
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