Hello…I have one text file whose name is 1.txt
Firstly I used the Read text file activity and the used generate a data table that variable name is dt_dataTable.
and in that data table only 1 column and that name is Column1.
I need to capture specific text like My name is XXX. then I need only XXX. and that XXX is put in a new .txt file so, can you suggest to me what I can do? ya please provide a solution with a picture for better understanding.
Gokul001
(Gokul Balaji)
November 21, 2022, 1:09pm
2
HI @Ravi_Dholariya
Can you share the sample text file with us?
Regards
Gokul
My Name is XXX=1
First Name Patel
last name Ram
My Name is XXXx=0
First ami Patel
last name Ram
My Name is XX=1
First N Patel
last name Ram
so i need =1 all font and also second and third line.
Gokul001
(Gokul Balaji)
November 21, 2022, 1:26pm
4
Ravi_Dholariya:
My Name is XXX=1
First Name Patel
last name Ram
My Name is XXXx=0
First ami Patel
last name Ram
My Name is XX=1
First N Patel
last name Ram
This is the input string and expected output for this string ? @Ravi_Dholariya
i need as a output all the =1 font like you can see first 3 and last 3 raw
Gokul001
(Gokul Balaji)
November 21, 2022, 1:48pm
6
Can’t able to understand. Just type output here. @Ravi_Dholariya
Are you need to extract all the 9 lines?
My Name is XXX=1
First Name Patel
last name Ram
My Name is XX=1
First N Patel
last name Ram
This is output
Gokul001
(Gokul Balaji)
November 22, 2022, 7:32am
8
HI @Ravi_Dholariya
How about this expression?
System.Text.RegularExpressions.Regex.Matches(YourString,"\S.*(?<=1)|(?<=1\n\S.*\n)\S.*|(?<=1\n)\S.*")
Check out this XAML file
TextFile - Regex.xaml (6.5 KB)
Regards
Gokul
in for each which activity i can used for write that data in .txt file
Gokul001
(Gokul Balaji)
November 22, 2022, 7:48am
10
HI @Ravi_Dholariya
You can try with Write text file and Append Line activity
Regards
Gokul
system
(system)
Closed
February 4, 2023, 9:43am
11
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.