in reply to Re: Matching an JavaScript object initalizer regex
in thread Matching an JavaScript object initalizer regex

> They do not only seem pretty much alike. JavaScript uses the same RE as Perl or grep does.

Well technically, they don't. Perl's regexp engine is *far* advanced from that in Javascript (up to version 1.3 at least, 1.5 is a bit better). They all have the same basic features (and in grep's case they're *very* basic, egrep is a little more capable), and sometimes even they aren't standard. But Perl is in a league of it's own when it comes to complex regular expressions and speed. Just check out the Extended Features section under man perlre for many examples of features not available both Javascript and grep.
HTH

broquaint

  • Comment on Re: Re: Matching an JavaScript object initalizer regex

Replies are listed 'Best First'.
Re: Re: Re: Matching an JavaScript object initalizer regex
by little (Curate) on Feb 14, 2002 at 18:15 UTC
    I do fully agree.
    But the fact that counts here is simly that Perl will "get" any RE from grep or JavaScript as long as the RE itself was written according to what is commonly referred to as "proper notation", even if a simple one.
    All animals capable of flying have wings, but not all animals which have wings can fly.

    Have a nice day
    All decision is left to your taste