Loading ...
Sorry, an error occurred while loading the content.

Unexpected escaped character '<' in regular expression.

Expand Messages
  • Fred Lorrain
    Hello, Here a piece of code: if (this.newsDetailHasAbstract) {HTML += + this.myData.record[0][0][3].replace(/ ]* /gi, )
    Message 1 of 3 , Aug 12, 2008
    View Source
    • 0 Attachment
      Hello,

      Here a piece of code:

      if (this.newsDetailHasAbstract) {HTML += '<div class="articleAbstract">' + this.myData.record[0][0][3].replace(/<\/?a[^>]*>/gi,'') + '</div>';}
      HTML += '<div class="articleBody">' + this.myData.record[0][0][5].replace(/<\/?a[^>]*>/gi,'') + '</div>';

      The error that are reported:


      Unexpected escaped character '<' in regular expression.
      HTML += '<div class="articleAbstract">' + this.myData.record[0][0][3].rep...

      Unexpected escaped character '<' in regular expression.
      HTML += '<div class="articleBody">' + this.myData.record[0][0][5].replace(...


      What's wrong in my RegEx?
      No < are escaped!
    • Douglas Crockford
      ... Fixed. Thanks for the report.
      Message 2 of 3 , Aug 12, 2008
      View Source
      • 0 Attachment
        --- In jslint_com@yahoogroups.com, "Fred Lorrain" <yahoo@...> wrote:

        > What's wrong in my RegEx?
        > No < are escaped!

        Fixed. Thanks for the report.
      • Fred Lorrain
        ... Wow ! Incredible! Thank you so much for your quick update. Your tool really rocks.
        Message 3 of 3 , Aug 12, 2008
        View Source
        • 0 Attachment
          --- In jslint_com@yahoogroups.com, "Douglas Crockford" <douglas@...>
          wrote:
          >
          > --- In jslint_com@yahoogroups.com, "Fred Lorrain" <yahoo@> wrote:
          >
          > > What's wrong in my RegEx?
          > > No < are escaped!
          >
          > Fixed. Thanks for the report.
          >

          Wow !
          Incredible!
          Thank you so much for your quick update.
          Your tool really rocks.
        Your message has been successfully submitted and would be delivered to recipients shortly.