in reply to Re: Slightly Off Topic: Differences with Regular Expressions in other languages
in thread Slightly Off Topic: Differences with Regular Expressions in other languages

I don't think that's right, because Javascript had regular expressions as of version 1.2, which I believe came out in 1999, whereas Java did not have an official Regexp API until J2SE 1.4 which came out in 2002. So I believe JS took its cue directly from Perl. This document from Sun seems to be a definitive reference.

Update: One other hint is the fact that Javascript uses an identical syntax to Perl for specifying literal regexps (//) and modifiers, but Java does everything through objects.

  • Comment on Re^2: Slightly Off Topic: Differences with Regular Expressions in other languages