Regular Expressions “Any Character” in Javascript

The problem:
In Javascript Regular Expressions, the dot character (.) doesn’t truly represent any character.  It leaves out new lines.

The solution:
Rather than using the dot character, try using [\s\S] which matches both whitespace and non-whitespace characters.  This equates to a true “Any Character”.

Read previous post:
FIXED: Firefox 6+ and Slow Browsing on Lion

[contentblock id=2] I recently upgraded to MacOS X Lion.  Shortly after that Firefox automatically updated to v6.  I began to...

Close