How to fetch the code that is between enter ?
I’ve tried like this, but when run on UiPath no output.
please help me fix the regex to get the output i want.
Logic uses given information to create an inference. For example, if you came home and found your
leftovers were gone from
the fridge and you lived with a roommate. logic
would dictate your roommate ate your food based on the fact no one else should be in the house.
Can you try \r?\n instead of \n, as the following?
(?<=a roommate. logic\r?\n).*?(?=\r?\n)
Hi @Mulya_Habibi_Tullah1 ,
Please check this below code and pass your regex & input string to this code,
yourValue(String as type) = System.Text.RegularExpressions.Regex.Match("Your Input String","Your Regex", System.Text.RegularExpressions.RegexOptions.Multiline).Value
Let us know if this works for you?
Message Box: Object reference not set to an instance of an object.
haven’t got any results if run on UiPath
What activity do you use? The following works in my environment.
System.Text.RegularExpressions.Regex.Match(yourString,"(?<=a roommate. logic\r?\n).*?(?=\r?\n)").Value
yes it works,
but this is just one example,
what i want is to take the sentence or code after the new line
These examples have been automatically selected and may contain sensitive content
not reflect the opinions or policies of Collin
Or its parent company HarperCollins.
We welcome feedback: report an example sentence to the Collins team.
thanks @Yoichi , its woks
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.