Link Details

Link 75799 thumbnail
User 272767 avatar

By StevenLevithan
via blog.stevenlevithan.com
Submitted: Apr 14 2008 / 09:43

I'll describe the problem in the context of iterating over matches in a string using the RegExp.prototype.exec method and a while loop. That's where I've most frequently encountered this lastIndex bug, and I think it will help explain why the issue exists in the first place.
  • 2
  • 0
  • 130
  • 14

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (2)



Voters Against This Link (0)