โ† IBM questions

Extract and transform numbers from a string

Filed under IBM

Given a string containing alphanumeric characters, extract the numbers. If an extracted number ends with three zeros, convert those three zeros into a single zero (e.g., 1000 becomes 10).

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 IBM questions

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