Hi Team
Aláírás nélkül érvényes számlakivonat!
Amennyiben a Bank részére korábban, az ügyfél-azonosítás során megadott adataiban, illetve a tényleges tulajdonos személyét illetően változás történt, arról kérjük, Bankunkat haladéktalanul értesítse
Könyvelési dátum 9. Közlemény 10. Értéknap 11. Összeg
Start Balance 203.394.310,66
12. Jóváírások összesen 13. Terhelések összesen 14. Záró egyenleg
87.691.751,00 3.738.382,00 287.347.679,66
Text in Deutsch
I want to extract two amount from these text 1 .After start balance 203.394.310,66
2 no 287.347.679,66 please make this extraction as dynamically
1 Like
vrdabberu
(Varunraj)
July 28, 2023, 11:22am
2
Hi @Kuldeep_Pandey
USE THE BELOW REGEX EXPRESSION
System.Text.RegularExpressions.Regex.Matches(input,"(\d{3}\.\d{3}\.\d{3}\,\d+)")
OR CAN USE THE BELOW REGEX EXPRESSION
System.Text.RegularExpressions.Regex.Matches(input,"(?<=([A-Za-z]+\s+[A-Za-z]+\s+))(\d+.\d+.\d+.\d+)|((\d+.\d+.\d+.\d+$))")
Hope it works!!
mkankatala
(Mahesh Kankatala)
July 28, 2023, 11:26am
4
Hi @Kuldeep_Pandey
Check the below regular expression
System.Text.RegularExpressions.Regex.Matches(yourstringinput.ToString,“((?<=[\w+\s+\w+\s*])\d{3}\.\d{3}\.\d{3}\,\d+)”)
Hope it helps!!
Please provide me 2 different regex
for 1 and for 2 amount both
@Kuldeep_Pandey
Check my solution
Yes but in 2 Regex I want last amount
mkankatala
(Mahesh Kankatala)
July 28, 2023, 11:42am
10
Okay @Kuldeep_Pandey
After Start Balance
System.Text.RegularExpressions.Regex.Matches(yourstringinput.ToString,“((?<=\w+\s+\w+\s*)\d{3}\.\d{3}\.\d{3}\,\d+)”)
Last number
System.Text.RegularExpressions.Regex.Matches(yourstringinput.ToString,“((?<=\d{1}.\d{3}\.\d{3}\,\d+\s*)\d{3}.\d{3}\.\d{3}\,\d+)”)
Hope it helps!!
vrdabberu
(Varunraj)
July 28, 2023, 11:42am
11
@Kuldeep_Pandey
Hi @Kuldeep_Pandey
USE THE BELOW REGEX EXPRESSION
System.Text.RegularExpressions.Regex.Matches(input,"(\d{3}\.\d{3}\.\d{3}\,\d+)")
OR CAN USE THE BELOW REGEX EXPRESSION
System.Text.RegularExpressions.Regex.Matches(input,"(?<=([A-Za-z]+\s+[A-Za-z]+\s+))(\d+.\d+.\d+.\d+)|((\d+.\d+.\d+.\d+$))")
Hope it works!!
mkankatala
(Mahesh Kankatala)
July 28, 2023, 7:33pm
13
I have provided the regular expression to extract the values with different regex.
Check the above replies
Okay @Kuldeep_Pandey
After Start Balance
System.Text.RegularExpressions.Regex.Matches(yourstringinput.ToString,“((?<=\w+\s+\w+\s*)\d{3}\.\d{3}\.\d{3}\,\d+)”)
[image]
Last number
System.Text.RegularExpressions.Regex.Matches(yourstringinput.ToString,“((?<=\d{1}.\d{3}\.\d{3}\,\d+\s*)\d{3}.\d{3}\.\d{3}\,\d+)”)
[image]
Hope it helps!!
If you got the solution for your query. Make mark it as solution to close the loop. @Kuldeep_Pandey
vrdabberu
(Varunraj)
July 30, 2023, 5:55am
15
Hi @Kuldeep_Pandey
Below is the regex for your requirement. Please do check and let me know if anything required.
@Kuldeep_Pandey
Hi @Kuldeep_Pandey
USE THE BELOW REGEX EXPRESSION
System.Text.RegularExpressions.Regex.Matches(input,"(\d{3}\.\d{3}\.\d{3}\,\d+)")
[image]
OR CAN USE THE BELOW REGEX EXPRESSION
System.Text.RegularExpressions.Regex.Matches(input,"(?<=([A-Za-z]+\s+[A-Za-z]+\s+))(\d+.\d+.\d+.\d+)|((\d+.\d+.\d+.\d+$))")
[image]
Hope it works!!
If you find the solution please do mark as solution to close the loop.
Hope it helps!!
Parvathy
(PS Parvathy)
July 31, 2023, 4:22am
17
Use the datatype System.Collections.Generic.IEnumerable(System.Text.RegularExpressions.Match)
Regards
vrdabberu
(Varunraj)
July 31, 2023, 4:25am
18
@Kuldeep_Pandey
Bro use the below as the data type for the variable created.
System.Collections.Generic.IEnumerable(System.Text.RegularExpressions.Match)
Hope it helps!!
vrdabberu
(Varunraj)
July 31, 2023, 4:37am
21
@Kuldeep_Pandey
Please check the below attached image.
Hope it helps!!
vrdabberu
(Varunraj)
July 31, 2023, 4:40am
22
@Kuldeep_Pandey
Bro remove the double quotes and place it again.
System.Text.RegularExpressions.Regex.Matches(PDF_1.ToString,"((?<=\w+\s+\w+\s*)\d{3}\.\d{3}\.\d{3}\,\d+)")
Hope it helps!!
vrdabberu
(Varunraj)
July 31, 2023, 5:09am
24
@Kuldeep_Pandey
Bro please give the below syntax in the assign activity
System.Text.RegularExpressions.Regex.Matches(PDF_1.ToString,"((?<=\w+\s+\w+\s*)\d{3}\.\d{3}\.\d{3}\,\d+)")
If not please use the below activities to get the output
In pattern give the regex expression
In Text to search in provide the input file example PDF_1
Give the output variable in the First Match as you are extracting only one data from that regex.
Hope it helps!!