TIL that global RegExp object holds references to latest captured groups by any instance /f(o)o/.test('foo bar'); RegExp.$1 == 'o'; #js
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@mathias@millermedeiros I don’t quite understand what the benefit of global RegExp object having access to last instances capture group is? -
@integralist some browser might have implemented it and others followed. I consider it a "bad practice" since it's counterintuitive - 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.