leetle

Daily challenge for 2026-01-30

395. Filter Digits from String

Given a string s, return a new string containing only the numeric digits (0-9) found in the original string, in the order they appear. If no digits are found, return an empty string.

Example:
Input: s = "abc123def"
Output: "123"

Run this challenge interactively in Python or JavaScript when the app loads.