This project is archived and is in readonly mode.

#1121 ✓invalid
tester123

regex error

Reported by tester123 | December 21st, 2010 @ 09:37 PM

This regex doesn't work:
val.test("[\w+-._]+@[\w-.]+.\w{2,}", "i"

This second regex works:
val.test("[\w+-._]+@[\w.-]+.\w{2,}", "i"

All that changed was . and - in the second character set were switched.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

Pages