Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
geonnave
on April 10, 2017
|
parent
|
context
|
favorite
| on:
COAP endpoints on IKEA Trådfri
s/Unlike REST/Unlike HTTP
shshhdhs
on April 10, 2017
[–]
I think your regular expression needs a /g at the end, no?
Edit: This was a serious question, not sure I deserve multiple downvotes
0xbadcafebee
on April 10, 2017
|
parent
[–]
It only needs "/". "g" finds all matches, but there is only one match in the string.
newman314
on April 10, 2017
|
root
|
parent
[–]
Still needs the trailing /
skywhopper
on April 10, 2017
|
root
|
parent
[–]
Only for sed/perl. Not if you are using vim (although in that case it's missing the leading `:`).
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: