← SAP questions

Split String Around Character

Filed under SAP

Given an input string `s` and a target character `target`, write a function to split the string around the first occurrence of `target`. Return a tuple of two substrings: characters to the left of…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related SAP questions

Collected from public candidate posts and coding forums. Updated Nov 2026.