Text_str=
"Basic 27563 330750
HRA 13781 165375
Lunch Allowance 2500 30000
Transport Allowance 1600 19200
Medical Allowance 2085 25020
Special Allowance 23588 283056
Flexi Benefits Plan* 3000 36000
Monthly Gross (A) 74117 889401
Statutory Benefits ©
Employer PF 3308 39690
Gratuity (As per Act) 1326 15909
Total CTC (A+C) 78750 ‘945000
Medical Insurance ™! 5000
950000"
This is my text
I taken all digit values expect Total CTC since it have 'symbol before digit How to resolve it?
Gokul001
(Gokul Balaji)
2
HI @sathya_auto
How about this expression? Correct me if im wrong Based on my understanding you need the CTC number Right?
System.Text.RegularExpressions.Regex.Match(YourString,"(?<=\+\S\)\s)\S.+").Tostring
Regards
Gokul
ppr
(Peter Preuss)
4
Anchoring on total:
(?<=Total CTC.*?)\d[\d\s\S]+?$
Not resolved
Total CTC (A+C) 78750 ‘945000 i have to extract
Not resolved
Total CTC (A+C) 78750 ‘945000 i have to extract
ppr
(Peter Preuss)
7
is different from
maybe you are looking for the following or you will resharp your requirement description
Text_str=
"Basic 27563 330750
HRA 13781 165375
Lunch Allowance 2500 30000
Transport Allowance 1600 19200
Medical Allowance 2085 25020
Special Allowance 23588 283056
Flexi Benefits Plan* 3000 36000
Monthly Gross (A) 74117 889401
Statutory Benefits ©
Employer PF 3308 39690
Gratuity (As per Act) 1326 15909
Total CTC (A+C) 78750 ‘945000
Medical Insurance ™! 5000
950000"
I have to extract Total CTC (A+C) 78750 ‘945000
system
(system)
Closed
11
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.