Validate String as it's only have the CHAR value not any numeric

Hi All.

I have a string type variable holding the value like Amar Singh S/O Piara Singh)+.
I want the boolean value by checking that variable has only the CHAR and not any alpha-numeric

If Variable has-. Amar Singh S/O Piara Singh)+ output should be True
If Variable has-. Amar Singh S/O Piara Singh)+1 output should be False

Thanks in Advance.

grafik

System.Text.RegularExpressions.Regex.IsMatch(YourStringVar,"\d")

Hi @Yankit_Singh_R

1.Assign activity
Str_Variable= “Amar Singh S/O Piara Singh)+”
2.Assign activity
Match=System.Text.RegularExpressions.Regex.IsMatch(Str_Variable, “\d”)
3.Message box
Match
Output-False

1.Assign activity
Str_Variable= “Amar Singh S/O Piara Singh)+1”
2.Assign activity
Match=System.Text.RegularExpressions.Regex.IsMatch(Str_Variable, “\d”)
3.Message box
Match
Output-True

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.