markdown guide


string = string.replace(β€œ β€œ, β€œ%20”)

Or if you wanna go all in:

from urllib.parse import quote
string = quote(string)

(Snippets are in Python because I don’t know Swift)


Yeah in Swift 5 the syntax is pretty similar
string.replaceOccurrences(of: β€œ β€œ, with: β€œ%20”)

In everyday practice, I def use that method.

Typically in interviews, interviewers want to see whether the interviewee understands/can derive the algorithm which makes that method work (hence, all the code πŸ˜¬πŸ™ƒ)

Classic DEV Post from Jan 16

Is 2019 the year of TypeScript?

Also published at on Jan 16, 2019 Photo by NordWood Themes on...

creator profile image
I create things, mostly VR/AR/iOS has dark mode.

Go to the "misc" section of your settings and select night theme ❀️