LIRAN Y
12/04/2022, 5:45 PMremovePrefix()
if i have this string
Expiration Date: "2023-01-03 16:06:52 +0000 UTC"
and i want to get "2023-01-03 16:06:52 +0000 UTC"
LIRAN Y
12/04/2022, 5:46 PM.removePrefix("Expiration Date: ")
i tried this but seems like not working as expectedcorneil
12/04/2022, 6:09 PMJoffrey
12/04/2022, 6:16 PMLIRAN Y
12/04/2022, 6:51 PMcorneil
12/04/2022, 6:52 PMLIRAN Y
12/04/2022, 7:58 PMdrop(n)
Joffrey
12/04/2022, 8:50 PMdrop
instead of removePrefix
?Ömer Faruk Delibaş
12/04/2022, 9:08 PMsubstringAfter
LIRAN Y
12/05/2022, 9:31 AMremovePrefix
but it didnt workJoffrey
12/05/2022, 10:29 AMD
is lowercase in the actual input?Joffrey
12/05/2022, 11:12 AMval input = "Expiration Date: \"2023-01-03 16:06:52 +0000 UTC\""
val output = input.removePrefix("Expiration Date: ")
println(output) // prints "2023-01-03 16:06:52 +0000 UTC"
https://pl.kotl.in/JKslLmEkY