> 3 years ago I wrote a blog post about broken regular expressions in Ruby, ^$ meaning new lines \n.
Are they actually broken? One of the first quirks I learned writing Ruby is that you use \A and \z instead of ^ and $.
I know better than to blame security vulnerabilities on "bad programmers" rather than usability problems with a language (or plain old PoLA violations), but changing the meaning of these anchors will be a tough migration, possibly.
Are they actually broken? One of the first quirks I learned writing Ruby is that you use \A and \z instead of ^ and $.
I know better than to blame security vulnerabilities on "bad programmers" rather than usability problems with a language (or plain old PoLA violations), but changing the meaning of these anchors will be a tough migration, possibly.