I am trying to remove the trailing numbers from the string using JavaScript RegExp. Here is the example.
Input output
-------------------------
string33 => string
string_34 => string_
str_33_ing44 => str_33_ing
string => string
Hope above example clears what I am looking for!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…