You are given a string s consisting of lowercase English letters.
Parse the string from left to right and identify valid English words representing single digits from "zero" to "nine" (specifically "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", and "nine"). Convert each identified word into its corresponding numeric digit from
Return the resulting string of digits.
Constraints:
s.length
s contains only lowercase English letters.
You are given a string s consisting of lowercase English letters.
Parse the string from left to right and identify valid English words representing single digits from "zero" to "nine" (specifically "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", and "nine"). Convert each identified word into its corresponding numeric digit from
Return the resulting string of digits.
Constraints:
s.length
s contains only lowercase English letters.