Input
122256A
456677AS
2345566B
456777DC
345556B
Output
True
False
True
False
True
Hi @Demo_User
How about this expression?
System.Text.RegularExpressions.Regex.IsMatch(YourString,"\d{2}\D{2}$")
Regards
Gokul
Try this one @Demo_User
System.Text.RegularExpressions.Regex.IsMatch(YourString,"\d{2}\D{1}$")
Hello
Try this in an ‘If’ activity:
System.text.regularexpressions.regex.IsMatch(yourStr,”\d[A-z]$”)
Then - ends with Digit and Alphabet
Else - does NOT end with digit and Alphabet
Hopefully this helps.
Cheers
Steve
input_str=“122256A”
in assign
Varibale=System.Text.RegularExpressions.Regex.IsMatch(Input_str,“[A-Z\d]{2}$”)
This Syntax returns ends true as it ends with Digit & Alphabet
if Varibale.equals(“True”)
then -True
else- False
How to remove special character only at the start and end of the text not in between somewhere
For this one you can create the new topic? @Demo_User
System.Text.RegularExpressions.Regex.Replace(YourString,"^[^a-zA-Z0-9]+|[^a-zA-Z0-9]+$","").ToString
Regards
Gokul
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.