Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Cyborg)
  • No Skin
Collapse
Brand Logo

CIRCLE WITH A DOT

jhelou@mamot.frJ

jhelou@mamot.fr

@jhelou@mamot.fr
About
Posts
1
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

View Original

Posts

Recent Best Controversial

  • me: i need to validate some email addresses, so i am going to write a quick regex.
    jhelou@mamot.frJ jhelou@mamot.fr

    @nixCraft Everytime someone uses a regex to validate an email, god kills truckloads of kittens

    Split on last @ ensuring the previous character is not itself an @

    Check if the domain part resolves, make sure you allow for international domain names.

    You can check if the localpart is well formed. IIRC this is not possible with regexes. You need a parser.

    With a valid domain, sending an email is the only real way to verify if the address is actually valid. Well formed doesn't mean accepted.

    Uncategorized
  • Login

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups