Hello,
Short Summary.
I read this email body and saved it as a string.
Now how can I extract the whole line with Number1: and save it as a string so that I can continue working with it.
Thanks for the answers
Hello,
Short Summary.
I read this email body and saved it as a string.
Now how can I extract the whole line with Number1: and save it as a string so that I can continue working with it.
Thanks for the answers
Hi @Energy
Try this regex:
Number.*
Assign: str_result = System.Text.RegularExpressions.Regex.Match(str_Var, "Number.*").value
Unfortunately, not the entire line is output here
Hi @Energy ,
Could you check with the below expression :
System.Text.RegularExpressions.Regex.Match(strVar, "(?<=Number1:).*").value
Hi, a question about that. If I now have Number1 in the email twice, how can I output both?
The way it works is that it only outputs one. If there are two different ones, I would output both.
Thanks
matches = System.Text.RegularExpressions.Regex.Matches(str_Var, β(?<=Number1:\s+).*β)
Here matches type is:
Both the values stored in this collection variable
Unfortunately I get an error and I donβt know why!?
Could you help me with this and so that we understand each other correctly, something else should be used as an example for a Number1: (here).
I get this then
Is there no way to keep it as a string because I still have to use replays with the string?!
You can store it in a String variable in the below code, Value variable datatype is System.String
System.Text.RegularExpressions.Regex.Matches(Input,"(Number1).*")
Please find the below xaml for your reference
BlankProcess15.zip (41.5 KB)
Hope this helps!!
Hello,
Thank you very much, I had to try it briefly in my process.
It worked, thank you.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.