News for hackers. Stuff that matters.
Re:All Software is Legacy by paulryanrogers on Saturday February 27, 2016 @07:51PM (#11189218)
Less code is generally better. But I've noticed a lot of folks still using ^ or $ when what they really mean is \A or \z
Re:All Software is Legacy by voltagex_ on Saturday February 27, 2016 @08:13PM (#11189286)
What's the difference? ^ and $ is basically all I remember from when I read Mastering Regular Expressions
Re:All Software is Legacy by eCa on Saturday February 27, 2016 @08:45PM (#11189368)
\A and \z always match beginning/end of the string.

^ and $ can be changed to mean beginning/end of each line in the string with the /m flag.