I am new to batch scripting. although i have shell and python solutions for this problem but got stuck in batch script.
I have string like 123_happy, 234.healthy, 3456wealthy etc.
I want to extract the leading numbers from each string. the only pattern here is that all these strings contain numbers in the beginning.
I can't use echo %str:~0,3% as it doesn't fulfill my requirement.