First, some resources:
- Mozilla Development Center JavaScript Guide: Regular Expressions
- .NET Framework Regular Expressions - see the links at the bottom of the page
Here are a few differences:
- Lookahead is not supported in IE6 and IE7. (Search for
x(?=y)
in the MDC guide for for examples.)
- JavaScript doesn't support named capture groups. Example:
(?)
- The list of metacharacters supported by JavaScript is much shorter.