Input data
Val input="1000avgdhdhh"
Code
Val str="(0-9)+".r
Str.FindfirstIn(input).get <--- it will be returned the one or more numeric from the given input string
Output
1000
Val input="1000avgdhdhh"
Code
Val str="(0-9)+".r
Str.FindfirstIn(input).get <--- it will be returned the one or more numeric from the given input string
Output
1000
No comments:
Post a Comment