I would like to take the 's' out of http.
https://joy.tothewor.ld/today/and/tommorrow
http://joy.tothewor.ld/today/and/tommorrow
What's the fastest/less expensive way?
substring, string builder, something newer in Android's SDK?
String.replaceFirst
will do the job.
String output = input.replaceFirst("s","");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With