Hey all,
I’ve the
val1.Element(“somevalue”)
and got the below result.

Now I want the Output in the below format:

Is it possible?
Thanks in Advance
Hey all,
I’ve the
val1.Element(“somevalue”)
and got the below result.

Now I want the Output in the below format:

Is it possible?
Thanks in Advance
Hi @ray_sha
Is this the thing you want as output ??

So by using Regex you can get it by enabling below 2 Flags

Hope this may help you to solve your query
Mark as solution if this helps you and like it ![]()
Happy Automation ![]()
Best Regards
Er Pratik Wavhal ![]()
![]()
Hey,
can I get some more information on Reg expressions?
Hi @ray_sha
A regular expression is an object that describes a pattern of characters.
Regular expressions are used to perform pattern-matching and “search-and-replace” functions on text.
Within UiPath you can implement Regex by using Matches Activity.
So it is used for Extracting any Data based on patterns
For using Regex you must have knowledge about
Happy Automation ![]()
Best Regards
Er Pratik Wavhal ![]()
![]()
Thanks so much
Hi @ray_sha
The Package name is “UiPath.Core.Activities.Matches”
You just need to edit within properties panel

Within that
Input = “The variable in which your input is stored that should be in String”
Pattern = “(?<=<posting.+>).+”
Result = “Create new variable” For Eg :- abc
RegexOption :- 
And to view the output within WriteLine or Messagebox just use
The variable that you have created newly to store result
For eg :-
abc(0).value
Happy Automation ![]()
Best Regards
Er Pratik Wavhal ![]()
![]()
Hey,
I trying to read for a text file which uses the
var1.Element(“somevalue”) operation and than store the value in the variable.
I pass the variable as input string to the matches activity
I get this output.

Any idea?
Thanks in Advance.
Hi @ray_sha
Can you share the input File and the workflow on which you are working ??
So that i can go through it once as where it is going wrong
Happy Automation ![]()
Best Regards
Er Pratik Wavhal ![]()
![]()
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.