4 ms·
Try it; it doesn't seem to actually do this. The regex isn't in multi-line mode anyway, and the ^ is not at the front of the regex.
by emmett 18y ago
Try it; it doesn't seem to actually do this. The regex isn't in multi-line mode anyway, and the ^ is not at the front of the regex.
- noodle 18y agoi wasn't commenting on the functionality of the code snippet, but the functionality of ^ in regexes. edited to add this: so i went ahead and actually looked at the snippet. it looks like it might be a helper function in call stack debugging.
- emmett 18y agoI agree. That's what it seems to be for. What I don't get is...how does that regex work? Can anyone give me a sample string that actually matches it?
- noodle 18y agoi don't know for sure. i tried testing it out on closures and other random things and it doesn't seem to work on anything i can think of. perhaps its a typo?