3 ms·
The regular expression surprised me. I'm really used to using ^$ in php and it works as intended but apparently in Ruby the correct delimiters are \A\z.
by greenlblue 16y ago
The regular expression surprised me. I'm really used to using ^$ in php and it works as intended but apparently in Ruby the correct delimiters are \A\z.
- bodhi 16y ago^ and $ also work.