in reply to Re^3: hackerrank.com question
in thread hackerrank.com question
But that code actually works. It returns the expected results, including the terminal email address. It just doesn't on hackerrank.com. It did when I changed [^\w\.] to (?:$|[^\w\.]), which is what the regex site needed.
If it's not a Perl version thing, then it's likely some kind of emulator issue on their part, or perhaps the regex web site is wrong in not matching it. It seems to me that EOD is not a word, personally.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: hackerrank.com question
by writch (Sexton) on Sep 27, 2018 at 16:02 UTC | |
by writch (Sexton) on Sep 27, 2018 at 16:25 UTC | |
by writch (Sexton) on Sep 27, 2018 at 16:31 UTC |