Forum Discussion
d2_21508
Nimbostratus
Oct 06, 2015is 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
Oct 06, 2015@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
Nimbostratus
Oct 06, 2015Syntax is good, but general logic is bad. Please find the modified answer below.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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