Hello All ,
I need to check my output string contains “” or not.
Example. { “result” : “” } - This is a valid condition because it contains “”.
Example. { “result” : “1089” } - This is a invalid condition because it contains “” but “1089”.
Hi @Ripusudan_Sharma ,
Can you let us know what methods have you tried to implement this, so that we can either enhance it or provide a different approach.
Regards,
Hey! @Ripusudan_Sharma ,
Welcome back to community.
Try this :-
YourInputVariable.Contains(System.Text.RegularExpressions.RegEx.Match(YourInputVariable,“(”“)”).ToString)
Refer:-
Regards,
NaNi
1 Like
Hi
welcome back to UiPath forum
Use a assign activity like this
bool_output = System.Text.RegularExpressions.RegEx.Match(YourInputVariable,“(”“)”).value.ToString.Length>0
Where bool_output is a variable of type boolean
Cheers @Ripusudan_Sharma
1 Like
yourStringVar.Contains("""""")
yourStringVar.Contains(chr(32) & chr(32))
yourStringVar.Contains(chr(34) & chr(34))
System.Text.RegularExpressions.RegeEx.isMatch(yourStringVar, "[""]{2}")
etc
1 Like
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.