I can’t able to get you @Vidhi_Patel . Can you share the Input. Based on the input share the expected Output
i’m getting city name and email address from user and then getting temperature from google search temperature value in a string variable now i want get particular paragraph according to temperature from EmailFormat file below:-
Email Format.txt (2.7 KB)
Okay Understood. What is the issue your are facing while automating @Vidhi_Patel
I’m not able to get which condition I should put to solve this , i have prepared regex to get Dynamic values in EmailFromat file but how i should use condition , can i use switchcase but then how can i compare a temprature(String type) with the temprature range(mentined in format file) giving with the input file. Can you give me some hints. i get stuck.
You can try with Else If condition @Vidhi_Patel
Check out the docs & Video
Thank you understood. @Gokul001
Here according to condition i only want to extract first paragraph which include guide for o to 5 degree temperature. how ever my regex extracts all the Materials,Key Pieces,ACCESSORIES. Here is Schreenshot my regex below.
Regex: /(?=0 â€“ 5).|(?=MATERIALS:).|(?=KEY PIECES:).*|(?=ACCESSORIES:).
What is the Output for this regex pattern?
You can Add another Else if for all the paragraph
@Vidhi_Patel are you want just one paragraph from file
Yes for first condition if temp equal to 0 to 5 , i need only first paragraph for clothing guide.
Got it @Gokul001 , Thanks a lot ! will change starting expression for every case!
however that doesn’t support in uipath regex! i don’t know why!
How about this expression?
Instead of Ismatch activity use it in Assign activity
while specifying (?=0 â€“ 5 ) instead of (?=\d) i still face following error . it works well in regex editor in website but didn’t work for uipath!
with regards Vidhi
You can try like this
0 â€“ 5[A-Za-z\d\D\n\W].+\n.+\n.+\n.+
System.Text.RegularExpressions.Regex.Match(YourString,"0 â€“ 5[A-Za-z\d\D\n\W].+\n.+\n.+\n.+").Tostring
System.Text.RegularExpressions.Regex.IsMatch(YourString,"0 â€“ 5[A-Za-z\d\D\n\W].+\n.+\n.+\n.+").Tostring
Still this expression doesn’t work in assign activity but also not giving proper output in ismatch activity as well.
With Regards Vidhi
Can you tell us what do you want to achieve in this Ismatch activity @Vidhi_Patel
i want to select whole sentence of Accessories here “and hat!” is missing while checking in uipath studio, i have tested 10 to 15 degree as well same for it.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.