Monday, February 11, 2019

Regular expression is applied on the unstructured data

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

No comments:

Post a Comment

Python Challenges Program

Challenges program: program 1: #Input :ABAABBCA #Output: A4B3C1 str1="ABAABBCA" str2="" d={} for x in str1: d[x]=d...