Today while reading Writing better Regular Expressions in PHP I learned that meta characters are treated as literals in character classes. So '/^(\d[.]\d)$/' will match '1.2' but not '1x2'. Who knew!?
Tag Archives: literal
JavaScript values, variables, and literals
Reply
Found myself reading about values, variables, and literals in JavaScript.
How does “this” keyword work within a JavaScript object literal?
Found this article today, How does “this” keyword work within a JavaScript object literal?. It describes various ways of calling a function in javascript, and explains what the ‘this’ context will be in each case.