Forum Discussion
F5-Geek
Nimbostratus
Jun 18, 2018irule help
I would like convert the email address into username. for example email address Jack.White001@acme.com to
username jwhit001
youssef1
Cumulonimbus
Jun 18, 2018Hi,
i write you this irule:
when HTTP_REQUEST {
set mail "youssef.brown@mydomain.com"
regexp {^(.{0,1})[^.]+.([^@]+)} $mail -> firletername lastname
set username "$firletername$lastname"
log local0. "USERNAME: $username"
you will receive this logs USERNAME: ybrown
}
If you give me the context (if you use APM or not) I can give you more details. keep me in touch
Regards
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