4 ms·
I think your regular expression needs a /g at the end, no? Edit: This was a serious question, not sure I deserve multiple downvotes
by shshhdhs 10y ago
I think your regular expression needs a /g at the end, no?
Edit: This was a serious question, not sure I deserve multiple downvotes
- peterwwillis 10y agoIt only needs "/". "g" finds all matches, but there is only one match in the string.
- newman314 10y agoStill needs the trailing /
- skywhopper 10y agoOnly for sed/perl. Not if you are using vim (although in that case it's missing the leading `:`).