Sarathlal N

Split domain from an email address - Python

email = 'user@example.com'
domain = email.split('@')[1]

Recent Posts

  1. Action hooks that trigger on, before or after add, update or delete actions of option - WordPress
  2. Get all variations of a variable product - WooCommerce
  3. Generate random string - Python
  4. Get upcoming N days - PHP
  5. Split time in to time slots - PHP

Your Questions / Comments

If you found this article interesting, found errors, or just want to discuss about it, please get in touch.