◂ BACK TO COURSE
Kebab Case ConverterPAR 110
mediumD ×1.8 VERIFIED SOLVABLE
Convert the input string to kebab-case. Rules: - Output is entirely lowercase. - Each maximal run of letters/digits becomes one "word"; every other character is a separator. - Join the words with a single hyphen (-). - No leading or trailing hyphen, and never two hyphens in a row. Output ONLY the resulting kebab-case string. Examples: - Hello World -> hello-world - Order 42: Ship NOW!!! -> order-42-ship-now
PUBLIC EXAMPLES
INHello World
OUThello-world
INOrder #42: Ship NOW!!!
OUTorder-42-ship-now
~1 strokes / par 110 ⌘↵ submit · openrouter:openai/gpt-oss-20b:free