Kotlin Partition at first separator Online
Split into (before, separator, after) at first separator.
Run details
The output updates as you type. The tool processes input in your browser.
Worked example
The three values are the text before the separator, the separator, and the text after it. If the separator is absent, the original text is first.
- Separator
"/"
manuals.plus/docs
["manuals.plus","/","docs"]
Using this operation in Kotlin
The interactive result uses JavaScript. Kotlin String APIs expose character indexes and case conversion. Check whether your code targets JVM, JS, Native, or Wasm when depending on platform-specific utilities.