Ismatch

i want to extract (in Pdf File)
2-Fri,
5-sun, these type of data and some data like
6-
mon
7-
thu
how we can extract them?

1 Like

System.Text.RegularExpressions.Regex.Matches(InputText, "\d-[A-z][A-z][A-z]"

1 Like

you can’t use IsMatch activity it will return boolean type so use Matches activity and use this expression /d+/-[A-Za-z]+
cheers
@Shubham_Akole

1 Like

Hi
This expression would help you resolve this
\d+\W[A-Za-z]+|\d+\W\n.+

Cheers @Shubham_Akole

by using ismatch or matches actvity

1 Like

Fine
IsMatch is used to find whether that string is there or not which will give us Boolean value as output
But matches activity will give us the value in them

So use Matches activity
@Shubham_Akole

System.line.Enumerable+d-97’1[system.text.RegularExp ression.match]

this Message show in output…

RegexOutputVariable(0) do like this!
cheers
@Shubham_Akole

Fine the steps involved by like
Use MATCHES activity and mention the above expression and pass the string input and get the output with a variable named out_matches
—now use a FOR EACH activity and pass the above variable out_matches as input and change the type argument as System.Text.RegularExpressions.Match

And inside the loop use a writeline activity and mention as item.ToString
Which will display the value you want in output panel

Cheers @Shubham_Akole